nvim-lint icon indicating copy to clipboard operation
nvim-lint copied to clipboard

Document how to use glob filters to only run linters on a subset of a filetype

Open 9999years opened this issue 1 year ago • 1 comments

This documents the (excellent!) workaround for #660 in the README.md.

9999years avatar Sep 20 '24 17:09 9999years

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

xudyang1 avatar Sep 20 '24 23:09 xudyang1

Thanks, I integrated this a bit differently: https://github.com/mfussenegger/nvim-lint/pull/736

mfussenegger avatar Feb 06 '25 10:02 mfussenegger