I recently needed to disable one of the built-in linters in the ALE (Asynchronous Lint Engine) Vim plugin in my Neovim configuration.
This is the line that disables the PHP linter phpstan in Neovim.
vim.g.ale_linters_ignore = { "phpstan" }
I’m using the lazy.nvim plugin manager (not to be confused with the LazyVim pre-packaged configuration), so my line to load ALE is
return {
"dense-analysis/ale",
}
which I updated to
return {
"dense-analysis/ale",
config = function()
vim.g.ale_linters_ignore = { "phpstan" }
end,
}
Here is the Pull Request Disable phpstan in ALE.
Leave a Reply