ltex: more personalized configuration

TODO: add a shortcut for languages

Source: https://github.com/vigoux/ltex-ls.nvim
This commit is contained in:
Fabrice Mouhartem 2024-03-19 19:15:52 +01:00
parent 4edd7015ca
commit bef72fd08d

View File

@ -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 },