| Age | Commit message (Collapse) | Author | Files |
|
Problem:
Can't expand treesitter-incremental-selection to the next and previous
sibling nodes.
Solution:
Pressing `]N` in visual mode will expand the selection to the next
sibling node, and `[N` will do the same with the previous node.
Co-authored-by: altermo <107814000+altermo@users.noreply.github.com>
|
|
Problem:
`TSNode:id()` returns the underlying c pointer as a string, which may include
NUL bytes. In PUC Lua, `('%s'):format('\0a\0')` returns `''` and not `'\0a\0'`
(i.e. treats the string as a c-string (which terminates at the NUL byte)).
This resulted in two different nodes being able to have the same id.
Solution:
Use concatenation `..` instead of `string.format()`.
(cherry picked from commit bb2284d75e7e2b0587610d1ae4d681d185622645)
|
|
(cherry picked from commit facc21cc633cb97ba6ad16f10e477ac38f8f5d79)
|
|
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
(cherry picked from commit 1bcf2d7f90d4b2de18bc7e409db98893f01a83f1)
|
|
Problem
treesitter select over-complicates visual selection.
Solution
make it use same visual selection logic as lsp.
|
|
|
|
Co-authored-by: György Andorka <gyorgy.andorka@protonmail.com>
|