From 53c17aea969b108662d3cb614534be10d37e3170 Mon Sep 17 00:00:00 2001 From: bldur <112328437+bldur@users.noreply.github.com> Date: Mon, 28 Nov 2022 10:35:43 +0100 Subject: [PATCH] Add ltex-ls support to lsp. (#166) * Add ltex-ls support to lsp. Co-authored-by: bldur (https://github.com/bldur) --- lua/config/lsp.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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,