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: enabled for sources #1314

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

Conversation

ssiyad
Copy link

@ssiyad ssiyad commented Nov 19, 2022

This PR adds enabled for individual sources.

This option can be used to toggle source based on context/conditions (#806). I wanted dictionary to be enabled only in comments and, I was able to achieve that by

enabled = function (ctx)
    return context.in_treesitter_capture('comment')
end

Signed-off-by: Sabu Siyad <hello@ssiyad.com>
@MariaSolOs
Copy link
Contributor

Is there anything blocking this PR?

@PeterCardenas
Copy link

PeterCardenas commented Feb 18, 2024

@hrsh7th anyway we can get this PR through?

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.

None yet

3 participants