Commit 81d22f0
committed
refactor: delegate traversal to vim.treesitter._select
Drop nvim-treesitter dependency and manual parent-walking loop.
Neovim 0.12+ built-in _select handles node traversal, injection
language trees, and normalization. Wildfire becomes a thin surround-
awareness layer on top.
- Extract surround detection into surround.lua using TS node
structure (anonymous children as delimiters)
- Add pluggable checkpoint protocol (single trail stack) for
selection undo history
- Switch visual-mode mappings to function callbacks so _select
can read v/. marks correctly
- Remove: nvim-treesitter requires, count variable, fallback
traversal, print_selection, duplicated coord conversion
BREAKING CHANGE: requires Neovim 0.12+1 parent 918a187 commit 81d22f0
4 files changed
Lines changed: 250 additions & 318 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments