mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.94k stars 204 forks source link

feat: Use npm installed package when possible #644

Open AbelAnaya opened 1 month ago

AbelAnaya commented 1 month ago

I added two utils functions to search for commands to use as linter executable. These functions were ported from conform.nvim and have been adapted to nvim-lint as suggested in #519

With these functions it is easy to setup linters that may have a local installation but are allowed to fallback to a system wide binary if no local is found.

I had no time to setup test execution, hopefully CI can do its work :). I manually tested that standardjs keeps working, so there shouldn't be any problem.