-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refrain from re-creating marks
Previously all extmarks were re-created everytime a buffer is entered. This causes issues when changes are made to files, because the mark position is difficult to correctly determine when changes are made to files. Now only removed comment marks are removed, and new comments created. This leverages the built-in capability of marks to move along with changes in the code. The only case where it will not work is when re-loading the plugin after the changes were done, (without committing / pushing the changes to the PR.)
- Loading branch information
noortw01
committed
Jan 2, 2025
1 parent
4684f9c
commit 2cdd674
Showing
3 changed files
with
71 additions
and
34 deletions.
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
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
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