From ca6bb218fbfcf67bd75cc57594a353cf11be1802 Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Wed, 25 Feb 2026 11:34:24 -0500 Subject: fish and nvim --- vim/.config/nvim/lsp/codebook.lua | 40 +++++++++++++++++++++++++++++++++++++ vim/.config/nvim/lua/native-lsp.lua | 1 + 2 files changed, 41 insertions(+) create mode 100644 vim/.config/nvim/lsp/codebook.lua (limited to 'vim/.config') 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 -- cgit v1.3.1