From 6a22e63f5ac014cfd6622904f3d7323954197480 Mon Sep 17 00:00:00 2001 From: Qing Fu <16662647+zz5840@users.noreply.github.com> Date: Sat, 5 Jul 2025 19:43:24 +0800 Subject: feat: codebook lsp #3937 --- lsp/codebook.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lsp/codebook.lua (limited to 'lsp/codebook.lua') diff --git a/lsp/codebook.lua b/lsp/codebook.lua new file mode 100644 index 00000000..8a8700b5 --- /dev/null +++ b/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' }, +} -- cgit v1.2.3-70-g09d2