Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Change ltex configs? #14

@Antomek

Description

@Antomek

Hi all,

I gave grammar-guard a go, mainly because I wanted to change my ltex-ls language settings easily and so far nothing has worked (e.g. overriding the default configs of nvim-lsp-installer or trying these instructions.

Setting this:

-- setup the ltex-ls LSP config
require("lspconfig").grammar_guard.setup({
	settings = {
		ltex = {
			enabled = { "bibtex", "context", "context.tex", "html", "latex", "markdown", "org", "restructuredtext", "rsweave"},
			language = "en-GB",
			diagnosticSeverity = "information",
			setenceCacheSize = 2000,
			additionalRules = {
				enablePickyRules = false,
				motherTongue = "en",
			},
			trace = { server = "off" },
			dictionary = {},
			disabledRules = {},
			hiddenFalsePositives = {},
		},
	},
})

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions