mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
feat: add harper lsp
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,3 +12,4 @@ config/fish/completions
|
|||||||
config/fish/conf.d
|
config/fish/conf.d
|
||||||
config/fish/fish_variables
|
config/fish/fish_variables
|
||||||
config/fish/functions/*
|
config/fish/functions/*
|
||||||
|
file_dictionaries/
|
||||||
|
|||||||
3
bin/harper-backup
Executable file
3
bin/harper-backup
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rsync -av "$HOME/Library/Application Support/harper-ls/" ~/.config/harper-ls/
|
||||||
3
bin/harper-restore
Executable file
3
bin/harper-restore
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rsync -av ~/.config/harper-ls/ "$HOME/Library/Application Support/harper-ls/"
|
||||||
1
config/harper-ls/dictionary.txt
Normal file
1
config/harper-ls/dictionary.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Imhoff
|
||||||
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",
|
"gofumpt",
|
||||||
"goimports",
|
"goimports",
|
||||||
"gomodifytags",
|
"gomodifytags",
|
||||||
|
"harper-ls",
|
||||||
"html-lsp",
|
"html-lsp",
|
||||||
"htmlbeautifier",
|
"htmlbeautifier",
|
||||||
"impl",
|
"impl",
|
||||||
|
|||||||
@@ -96,3 +96,4 @@ scriptable
|
|||||||
dapp
|
dapp
|
||||||
webpage
|
webpage
|
||||||
Xcode
|
Xcode
|
||||||
|
Imhoff
|
||||||
|
|||||||
Binary file not shown.
@@ -85,7 +85,6 @@
|
|||||||
"basher": true,
|
"basher": true,
|
||||||
"catppuccin": true,
|
"catppuccin": true,
|
||||||
"catppuccin-icons": true,
|
"catppuccin-icons": true,
|
||||||
"cspell": true,
|
|
||||||
"csv": true,
|
"csv": true,
|
||||||
"deno": true,
|
"deno": true,
|
||||||
"docker-compose": true,
|
"docker-compose": true,
|
||||||
@@ -94,6 +93,7 @@
|
|||||||
"fish": true,
|
"fish": true,
|
||||||
"git-firefly": true,
|
"git-firefly": true,
|
||||||
"graphql": true,
|
"graphql": true,
|
||||||
|
"harper": true,
|
||||||
"html": true,
|
"html": true,
|
||||||
"ini": true,
|
"ini": true,
|
||||||
"log": true,
|
"log": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user