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.76k stars 191 forks source link

error message every time i open or save a file which linter is not installed #569

Closed daniele821 closed 2 months ago

daniele821 commented 2 months ago

nvim-lint plugin report the following error message:

Error detected while processing BufEnter Autocommands for "*":
Error running markdownlint: ENOENT: no such file or directory

every time i open or save a file which has a linter associated, but the linter is not installed. For example i declare "shellcheck" as the linter for bash, but i do not install shellcheck, and then i try to open a bash file, the error message written above will show up once i open the file, and every time i save the file.

I would like if it was like conform (which takes care of formatting), where if you don't have the thing installed, it just doesn't run.

thanks

ivanesmantovich commented 2 months ago

Hi! try_lint has an ignore_errors option to ignore command-not-found errors: require("lint").try_lint(nil, { ignore_errors = true })

454

I think it's a good idea to include it in the README ðŸ«