diff --git a/lua/lsp.lua b/lua/lsp.lua index 44369c5..208ed06 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -81,8 +81,26 @@ local servers = { tsserver = {}, -- html = { filetypes = { 'html', 'twig', 'hbs'} }, texlab = {}, - ltex = { filetypes = {'markdown', 'latex', 'norg', 'gitcommit'} }, - + ltex = { + filetypes = { + 'markdown', + 'latex', + 'norg', + 'gitcommit' + }, + ltex = { + language = "auto", + diagnosticSeverity = "information", + sentenceCacheSize = 2000, + additionalRules = { + enablePickyRules = true, + motherTongue = "fr", + }, + disabledRules = { + fr = { "APOS_TYP", "FRENCH_WHITESPACE" } + }, + } + }, lua_ls = { Lua = { workspace = { checkThirdParty = false },