From bef72fd08da9b864b99bd72f8a0e5ab4bf73f249 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Tue, 19 Mar 2024 19:15:52 +0100 Subject: [PATCH] ltex: more personalized configuration TODO: add a shortcut for languages Source: https://github.com/vigoux/ltex-ls.nvim --- lua/lsp.lua | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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 },