mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
fish and nvim
This commit is contained in:
parent
ea8682571c
commit
ca6bb218fb
3 changed files with 42 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ git status --porcelain | awk '
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
'''
|
'''
|
||||||
when = 'test -d .git && ! test -d .jj'
|
when = 'git rev-parse --is-inside-work-tree 2>/dev/null && ! jj root 2>/dev/null'
|
||||||
shell = ["sh"]
|
shell = ["sh"]
|
||||||
format = "[](fg:overlay)[[ $output ](bg:overlay)]($style)[](fg:overlay) "
|
format = "[](fg:overlay)[[ $output ](bg:overlay)]($style)[](fg:overlay) "
|
||||||
style = "bg:overlay fg:love"
|
style = "bg:overlay fg:love"
|
||||||
|
|
|
||||||
40
vim/.config/nvim/lsp/codebook.lua
Normal file
40
vim/.config/nvim/lsp/codebook.lua
Normal file
|
|
@ -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' },
|
||||||
|
}
|
||||||
|
|
@ -78,6 +78,7 @@ vim.lsp.config('csharp-ls', {
|
||||||
vim.lsp.enable("csharp-ls")
|
vim.lsp.enable("csharp-ls")
|
||||||
|
|
||||||
vim.lsp.enable("asm-lsp")
|
vim.lsp.enable("asm-lsp")
|
||||||
|
vim.lsp.enable("codebook")
|
||||||
|
|
||||||
-- https://lsp-zero.netlify.app/blog/lsp-client-features.html
|
-- https://lsp-zero.netlify.app/blog/lsp-client-features.html
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue