summaryrefslogtreecommitdiff
path: root/lua/ache/plugins
diff options
context:
space:
mode:
authorache <ache@ache.one>2024-09-29 08:54:51 +0200
committerache <ache@ache.one>2024-09-29 08:54:51 +0200
commit666b0743aad0027e9a169a8324f31f264730a2e4 (patch)
treef847926de8d373ef2585de4e12bb785dccbfaba6 /lua/ache/plugins
parentRemove useless plugins (diff)
Configure LSP for LanguageTool to not be setup on HTML
Diffstat (limited to 'lua/ache/plugins')
-rw-r--r--lua/ache/plugins/lsp/lspconfig.lua17
1 files changed, 17 insertions, 0 deletions
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,