nvim/lua/grammar.lua

22 lines
519 B
Lua
Executable File

require("grammar-guard").init()
require("lspconfig").grammar_guard.setup({
cmd = { '/usr/bin/ltex-ls' }, -- add this if you install ltex-ls yourself
settings = {
ltex = {
enabled = { "latex", "tex", "bib", "markdown" },
language = "en",
diagnosticSeverity = "information",
setenceCacheSize = 2000,
additionalRules = {
enablePickyRules = true,
motherTongue = "en",
},
trace = { server = "verbose" },
dictionary = {},
disabledRules = {},
hiddenFalsePositives = {},
},
},
})