-
when null-ls.nvim/lua/null-ls/builtins/diagnostics/tsc.lua Lines 50 to 52 in c9348b4 should something similar be done, or is there a simpler way to stop them from clashing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Do not use shellcheck via null-ls if you're also using bash-ls, as bash-ls now supports shellcheck integration: |
Beta Was this translation helpful? Give feedback.
-
yes, I realize that. But I don't always have bashls attached/installed, and I share my config across many machines. Is there an obvious way to disable null-ls's shellcheck integration iff there is a bashls instance attached to the buffer? |
Beta Was this translation helpful? Give feedback.
-
I ran into this as well and decided on a different solution. Because shellcheck via null-ls supports code actions (for disabling rules) and bashls does not, instead of disabling the null-ls shellcheck I disabled the bashls shellcheck. You can do this by giving bashls an empty string for For example: require("lsp-zero").configure("bashls", {
settings = {
bashIde = {
shellcheckPath = "",
},
},
})
|
Beta Was this translation helpful? Give feedback.
yes, I realize that. But I don't always have bashls attached/installed, and I share my config across many machines. Is there an obvious way to disable null-ls's shellcheck integration iff there is a bashls instance attached to the buffer?