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

[Feature] Disabling treesitter for specific filetypes #28

Closed
alexanderjeurissen opened this issue Aug 28, 2024 · 2 comments · Fixed by #29
Closed

[Feature] Disabling treesitter for specific filetypes #28

alexanderjeurissen opened this issue Aug 28, 2024 · 2 comments · Fixed by #29

Comments

@alexanderjeurissen
Copy link

There are situations where one wants to disable treesitter for specific filetypes.

for example: folke/noice.nvim#27

@mrcjkb
Copy link
Member

mrcjkb commented Aug 28, 2024

Hey 👋

This sounds reasonable.
nvim-treesitter allows you to pass in a function for conditionally disabling highlighting.
Perhaps something like that would make sense here too, as it would allow you to disable highlighting for large files.
The toml version of the config wouldn't be able to support that.

@alexanderjeurissen
Copy link
Author

Nice 🙌 thx for the quick fix @mrcjkb

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 a pull request may close this issue.

2 participants