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

feat(scope): allow filtering patterns when updating cache on autocmd events #84

Closed
wants to merge 3 commits into from

Conversation

Subjective
Copy link
Contributor

  • feat(scope): allow filtering patterns when updating cache on autocmd events
  • docs: add example of updating scope on autocmd event with pattern

-- You can even filter for patterns!
require("grapple.scope").resolver(function()
return vim.fn.getcwd()
end, { cache = "User PluginEvent"})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having to parse the cache it could be a table like so?

cache = {
    event = "User",
    pattern = "PluginEvent"

@cbochs cbochs mentioned this pull request Feb 29, 2024
@cbochs
Copy link
Owner

cbochs commented Mar 1, 2024

Thank you for the PR! Going to close as #89 addresses these changes

@cbochs cbochs closed this Mar 1, 2024
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