perf: add option to disable treesitter on large non-LOCAL diff buffers#99
perf: add option to disable treesitter on large non-LOCAL diff buffers#99dlyongemallo merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a configuration option to mitigate performance issues by disabling tree-sitter for very large non-LOCAL diffview revision buffers, aiming to keep large diffs responsive (notably in file history views).
Changes:
- Introduces
large_file_thresholdconfig option (default0= disabled). - Stops tree-sitter for revision buffers whose line count exceeds the threshold.
- Documents the new option in
diffview.txtanddiffview_defaults.txt.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| lua/diffview/vcs/file.lua | Conditionally stops tree-sitter for large non-LOCAL diff buffers after populating and filetype-detecting the buffer. |
| lua/diffview/config.lua | Adds the large_file_threshold default and inline config description. |
| doc/diffview.txt | Adds help docs for large_file_threshold. |
| doc/diffview_defaults.txt | Adds the new option to the displayed default config snippet. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
deff5b7 to
6861fc6
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6861fc6 to
27d9504
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
27d9504 to
7f23eca
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.