summaryrefslogtreecommitdiff
path: root/nvim/lsp/codebook.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/codebook.lua
Nixos
Diffstat (limited to 'nvim/lsp/codebook.lua')
-rwxr-xr-xnvim/lsp/codebook.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/nvim/lsp/codebook.lua b/nvim/lsp/codebook.lua
new file mode 100755
index 0000000..8a8700b
--- /dev/null
+++ b/nvim/lsp/codebook.lua
@@ -0,0 +1,32 @@
+---@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`.
+---
+return {
+ cmd = { 'codebook-lsp', 'serve' },
+ filetypes = {
+ 'c',
+ 'css',
+ 'go',
+ 'haskell',
+ 'html',
+ 'javascript',
+ 'javascriptreact',
+ 'markdown',
+ 'python',
+ 'php',
+ 'ruby',
+ 'rust',
+ 'toml',
+ 'text',
+ 'typescript',
+ 'typescriptreact',
+ },
+ root_markers = { '.git', 'codebook.toml', '.codebook.toml' },
+}