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,