From 666b0743aad0027e9a169a8324f31f264730a2e4 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 29 Sep 2024 08:54:51 +0200 Subject: Configure LSP for LanguageTool to not be setup on HTML --- lua/ache/plugins/lsp/lspconfig.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lua/ache/plugins/lsp/lspconfig.lua b/lua/ache/plugins/lsp/lspconfig.lua index 332652f..0e496e0 100644 --- a/lua/ache/plugins/lsp/lspconfig.lua +++ b/lua/ache/plugins/lsp/lspconfig.lua @@ -136,6 +136,23 @@ return { end, }) end, + ["ltex"] = function() + lspconfig["ltex"].setup({ + filetypes = { "latex", "typst", "typ", "bib", "markdown", "plaintex", "tex" }, + settings = { + ltex = { + enabled = { "latex", "typst", "typ", "bib", "markdown", "plaintex", "tex" }, + language = { "en-GB", "fr-FR" }, + setenceCacheSize = 2000, + additionalRules = { + enablePickyRules = true, + motherTongue = "fr-FR", + }, + checkFrequency = "edit", + }, + }, + }) + end, ["lua_ls"] = function() lspconfig["lua_ls"].setup({ capabilities = capabilities, -- cgit v1.3-2-g11bf