Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

9999years
Copy link

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

@xudyang1
Copy link
Contributor

xudyang1 commented Sep 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants