mirror of
https://github.com/dwinkler1/nvimConfig.git
synced 2026-08-22 17:43:13 -04:00
feat: add Harper grammar checker LSP
This commit is contained in:
parent
92bd53feea
commit
180c3e4f55
2 changed files with 32 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ in
|
||||||
marksman
|
marksman
|
||||||
texlab
|
texlab
|
||||||
imagemagick
|
imagemagick
|
||||||
|
harper
|
||||||
]);
|
]);
|
||||||
|
|
||||||
nix = maybe "nix" (with pkgs; [
|
nix = maybe "nix" (with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,37 @@ now_if_args(function()
|
||||||
marksman = {
|
marksman = {
|
||||||
filetypes = { "markdown", "markdown_inline", "codecompanion" },
|
filetypes = { "markdown", "markdown_inline", "codecompanion" },
|
||||||
},
|
},
|
||||||
|
harper_ls = {
|
||||||
|
cmd = { "harper-ls", "--stdio" },
|
||||||
|
filetypes = { "markdown", "quarto", "text", "tex", "typst" },
|
||||||
|
root_markers = { ".git", ".harper" },
|
||||||
|
settings = {
|
||||||
|
["harper-ls"] = {
|
||||||
|
linters = {
|
||||||
|
SpellCheck = true,
|
||||||
|
SpelledNumbers = false,
|
||||||
|
AnA = true,
|
||||||
|
SentenceCapitalization = true,
|
||||||
|
UnclosedQuotes = true,
|
||||||
|
WrongApostrophe = false,
|
||||||
|
LongSentences = true,
|
||||||
|
RepeatedWords = true,
|
||||||
|
Spaces = true,
|
||||||
|
CorrectNumberSuffix = true,
|
||||||
|
},
|
||||||
|
codeActions = {
|
||||||
|
ForceStable = false,
|
||||||
|
},
|
||||||
|
markdown = {
|
||||||
|
IgnoreLinkTitle = false,
|
||||||
|
},
|
||||||
|
diagnosticSeverity = "hint",
|
||||||
|
isolateEnglish = false,
|
||||||
|
dialect = "American",
|
||||||
|
maxFileLength = 120000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
nil_ls = {
|
nil_ls = {
|
||||||
settings = {
|
settings = {
|
||||||
["nil"] = {
|
["nil"] = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue