aboutsummaryrefslogtreecommitdiff
path: root/lua/config/lsp.lua
diff options
context:
space:
mode:
authorbldur <112328437+bldur@users.noreply.github.com>2022-11-28 10:35:43 +0100
committerGitHub <noreply@github.com>2022-11-28 17:35:43 +0800
commit53c17aea969b108662d3cb614534be10d37e3170 (patch)
treef25c720e3203fe8ea484e89d3876a2c2fc00a9f8 /lua/config/lsp.lua
parent43c1615822eeeb29d8213ca117760476f9e9f4dc (diff)
Add ltex-ls support to lsp. (#166)
* Add ltex-ls support to lsp. Co-authored-by: bldur (https://github.com/bldur)
Diffstat (limited to 'lua/config/lsp.lua')
-rw-r--r--lua/config/lsp.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index 928dc3a..56dcc31 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -131,6 +131,20 @@ end
-- vim.notify("pyright not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
-- end
+if utils.executable("ltex-ls") then
+ lspconfig.ltex.setup {
+ on_attach = custom_attach,
+ cmd = { "ltex-ls" },
+ filetypes = { "text", "plaintex", "tex", "markdown" },
+ settings = {
+ ltex = {
+ language = "en"
+ },
+ },
+ flags = { debounce_text_changes = 300 },
+}
+end
+
if utils.executable("clangd") then
lspconfig.clangd.setup {
on_attach = custom_attach,