nvim-lint
nvim-lint copied to clipboard
Document how to use glob filters to only run linters on a subset of a filetype
This documents the (excellent!) workaround for #660 in the README.md.
For lazy loading nvim-lint, the following config may also be helpful:
if filetype == "yaml" and string.find(path, ".github/workflows/") then
set_linters_cwd(opts.root_patterns_by_ft.github_action)
lint.try_lint(opts.linters_by_ft.github_action)
return
end
Thanks, I integrated this a bit differently: https://github.com/mfussenegger/nvim-lint/pull/736