• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Solution / Turn Off a Specific Linter in Neovim Ale

Turn Off a Specific Linter in Neovim Ale

Last updated on October 28, 2025 by Sal Ferrarello

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.

Related Resources

  • ALE (Asynchronous Lint Engine)
  • Turning off a specific linter w/ALE in Vim
Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP and JavaScript developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a principal engineer.

Filed Under: Solution Tagged With: neovim, vimplugin

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2026 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in