Open Antomek opened 2 years ago
This works for me:
require("nvim-lsp-installer").on_server_ready(function(server)
-- Specify the default options which we'll use to setup all servers
local opts = {
on_attach = on_attach,
}
if server.name == "ltex" then
opts.settings = {
ltex = {
enabled = { "latex", "tex", "bib", "markdown" },
language = "en-GB",
diagnosticSeverity = "information",
setenceCacheSize = 2000,
additionalRules = {
enablePickyRules = true,
motherTongue = "en",
},
trace = { server = "verbose" },
dictionary = {},
disabledRules = {},
hiddenFalsePositives = {},
},
}
end
server:setup(opts)
end)
Hi all,
I gave
grammar-guard
a go, mainly because I wanted to change myltex-ls
language settings easily and so far nothing has worked (e.g. overriding the default configs ofnvim-lsp-installer
or trying these instructions.Setting this:
as my config though, appeared to have no effect (settings remain at default). Did I make a silly mistake somewhere? Any tips on how to easily edit my configs? (Even better if I could swap languages with a keymap!)
Thanks!