弹棉花
an example to integrate external linters into nvim
- lint to the current content of buffers, no need to save first
- utilize vim.diagnostic, rather than flooding qf/loclist directly
- run multiple linters in parallel by spawning processes
- no going through lsp protocol, vim.lsp
- supported filetypes: python, bash, lua
- just works
- feature-complete
- just an example
- linux
- nvim 0.9.*
- haolian9/infra.nvim
- haolian9/cthulhu.nvim
- ruff, shellcheck, selene
:lua require'cotton'.lint()
弹棉花啊弹棉花
半斤棉弹成八两八哟
旧棉花弹成了新棉花哟
弹好了棉被那个姑娘要出嫁
哎哟勒哟勒 哎哟勒哟勒
弹好了棉被那个姑娘要出嫁
那个姑娘要出嫁
弹棉花罗弹棉花
半斤棉弹出八两八哟
旧棉花弹成了新棉花哟
弹好了棉被姑娘要出嫁