-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vim: Make sure treesitter updates parse tree when text changes (#32)
In the current implementation of treesitter, the parse tree for the current buffer would not be automatically updated/refreshed when text changes, unless treesitter-highlight module is enabled. However, I don't want to use treesitter's highlight/syntax feature yet due to some issues and conflicts. To make the parse tree up-to-date as text changes, parser:parse() needs to be explicitly called in the absence of treesitter-highlight. Ref: nvim-treesitter/nvim-treesitter#2492
- Loading branch information
Showing
1 changed file
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec2f252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference: nvim-treesitter/playground#64