mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat: add harper lsp
This commit is contained in:
38
config/nvim/lua/plugins/harper.lua
Normal file
38
config/nvim/lua/plugins/harper.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
-- Harper - Grammar and spell checker
|
||||
-- https://writewithharper.com/docs/integrations/neovim
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
harper_ls = {
|
||||
settings = {
|
||||
["harper-ls"] = {
|
||||
userDictPath = "~/.config/harper-ls/dictionary.txt",
|
||||
fileDictPath = "~/.config/harper-ls/file_dictionaries",
|
||||
linters = {
|
||||
SpellCheck = true,
|
||||
SpelledNumbers = false,
|
||||
AnA = true,
|
||||
SentenceCapitalization = true,
|
||||
UnclosedQuotes = true,
|
||||
WrongQuotes = false,
|
||||
LongSentences = true,
|
||||
RepeatedWords = true,
|
||||
Spaces = true,
|
||||
Matcher = true,
|
||||
CorrectNumberSuffix = true,
|
||||
},
|
||||
codeActions = {
|
||||
ForceStable = false,
|
||||
},
|
||||
markdown = {
|
||||
IgnoreLinkTitle = false,
|
||||
},
|
||||
diagnosticSeverity = "hint",
|
||||
isolateEnglish = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -19,6 +19,7 @@ return {
|
||||
"gofumpt",
|
||||
"goimports",
|
||||
"gomodifytags",
|
||||
"harper-ls",
|
||||
"html-lsp",
|
||||
"htmlbeautifier",
|
||||
"impl",
|
||||
|
||||
Reference in New Issue
Block a user