Files
neovim/runtime
Lewis Russell 2ca076e45f feat(treesitter)!: incremental injection parsing
Problem:

Treesitter highlighting is slow for large files with lots of injections.

Solution:

Only parse injections we are going to render during a redraw cycle.

---

- `LanguageTree:parse()` will no longer parse injections by default and
  now requires an explicit range argument to be passed.

- `TSHighlighter` now parses injections incrementally during on_win
  callbacks for the line range being rendered.

- Plugins which require certain injections to be parsed must run
  `parser:parse({ start_row, end_row })` before using the tree.
2023-08-12 16:11:36 +01:00
..
2023-08-11 22:06:37 +02:00
2023-04-23 15:22:55 +02:00
2022-12-08 16:33:38 +01:00
2023-08-12 11:01:05 +02:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2023-08-11 22:06:37 +02:00
2022-08-20 10:04:55 +02:00
2023-05-15 09:38:32 +02:00
2023-04-13 12:15:30 +02:00
2023-04-07 13:26:29 +02:00
2022-10-17 08:19:48 +02:00