diff options
| author | ache <ache@ache.one> | 2024-09-29 08:54:51 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2024-09-29 08:54:51 +0200 |
| commit | 666b0743aad0027e9a169a8324f31f264730a2e4 (patch) | |
| tree | f847926de8d373ef2585de4e12bb785dccbfaba6 /lua | |
| parent | Remove useless plugins (diff) | |
Configure LSP for LanguageTool to not be setup on HTML
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/ache/plugins/lsp/lspconfig.lua | 17 |
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, |