From 031e7694a50feba25085dd69d55fddaf2a6422c5 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Wed, 30 Apr 2025 14:42:54 +0200 Subject: [PATCH] =?UTF-8?q?fix(lsp):=20ltex=5Fplus=20=E2=86=92=20ltex=5Fls?= =?UTF-8?q?=5Fplus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Naming conflicts with lspconfig: the `filetypes` field was overwritten by lspconfig. --- lsp/{ltex_plus.lua => ltex_ls_plus.lua} | 12 ++++++++++++ lua/lsp.lua | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) rename lsp/{ltex_plus.lua => ltex_ls_plus.lua} (86%) diff --git a/lsp/ltex_plus.lua b/lsp/ltex_ls_plus.lua similarity index 86% rename from lsp/ltex_plus.lua rename to lsp/ltex_ls_plus.lua index 6f6559d..1ef4bf7 100644 --- a/lsp/ltex_plus.lua +++ b/lsp/ltex_ls_plus.lua @@ -31,6 +31,18 @@ return { single_file_support = true, settings = { ltex = { + enabled = { + 'markdown', + 'pandoc', + 'latex', + 'text', + 'norg', + 'gitcommit', + 'jj', + 'jjdescription', + 'rst', + 'typst' + }, language = "auto", diagnosticSeverity = "information", checkFrequency = "save", diff --git a/lua/lsp.lua b/lua/lsp.lua index 7b5d99c..2dd211e 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -163,4 +163,4 @@ end setup_godot_dap() vim.diagnostic.config({ virtual_text = true }) -vim.lsp.enable({ "ltex_plus", "rust-analyzer", "gdscript" }) +vim.lsp.enable({ "ltex_ls_plus", "rust-analyzer", "gdscript" })