diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-02-25 11:34:24 -0500 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-02-25 11:34:24 -0500 |
| commit | ca6bb218fbfcf67bd75cc57594a353cf11be1802 (patch) | |
| tree | 25dd0354f5f0044de7af02b54cf823a999943524 /vim/.config | |
| parent | ea8682571c35cc17dfe2c0f3797a63e86616801a (diff) | |
fish and nvim
Diffstat (limited to 'vim/.config')
| -rw-r--r-- | vim/.config/nvim/lsp/codebook.lua | 40 | ||||
| -rw-r--r-- | vim/.config/nvim/lua/native-lsp.lua | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/vim/.config/nvim/lsp/codebook.lua b/vim/.config/nvim/lsp/codebook.lua new file mode 100644 index 0000000..5bd3696 --- /dev/null +++ b/vim/.config/nvim/lsp/codebook.lua @@ -0,0 +1,40 @@ +---@brief +--- +--- https://github.com/blopker/codebook +--- +--- An unholy spell checker for code. +--- +--- `codebook-lsp` can be installed by following the instructions [here](https://github.com/blopker/codebook/blob/main/README.md#installation). +--- +--- The default `cmd` assumes that the `codebook-lsp` binary can be found in `$PATH`. +--- + +---@type vim.lsp.Config +return { + cmd = { 'codebook-lsp', 'serve' }, + filetypes = { + 'c', + 'css', + 'gitcommit', + 'go', + 'haskell', + 'html', + 'java', + 'javascript', + 'javascriptreact', + 'lua', + 'markdown', + 'php', + 'python', + 'ruby', + 'rust', + 'swift', + 'toml', + 'text', + 'typescript', + 'typescriptreact', + 'typst', + 'zig', + }, + root_markers = { '.git', 'codebook.toml', '.codebook.toml' }, +} diff --git a/vim/.config/nvim/lua/native-lsp.lua b/vim/.config/nvim/lua/native-lsp.lua index ea0434d..38fdacd 100644 --- a/vim/.config/nvim/lua/native-lsp.lua +++ b/vim/.config/nvim/lua/native-lsp.lua @@ -78,6 +78,7 @@ vim.lsp.config('csharp-ls', { vim.lsp.enable("csharp-ls") vim.lsp.enable("asm-lsp") +vim.lsp.enable("codebook") -- https://lsp-zero.netlify.app/blog/lsp-client-features.html |
