forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrammar-guard.lua
More file actions
33 lines (29 loc) · 876 Bytes
/
grammar-guard.lua
File metadata and controls
33 lines (29 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
-- plugin: grammar-guard.nvim
-- see: https://github.com/brymer-meneses/grammar-guard.nvim
-- DancingQuanta settings
-- install ltex-ls with :Mason
-- Get path to ltex-ls installed with Mason
-- table of table?
local mason_path = require('mason.settings').current.install_root_dir
-- Initialize
require('grammar-guard').init()
-- Setup
require("lspconfig").grammar_guard.setup({
cmd = { mason_path .. '/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 = {},
},
},
})