Artem

Results 58 comments of Artem

Forced \ keeps inclusivity from the original motion/text object, and since \`x is exclusive (not sure if it is in the docs, but `oap‍-‍‍>‍inclusive` is false in [`do_pending_operator`](https://github.com/neovim/neovim/blob/a2c158ad063bef6d43687dcf78956cd4e56717e4/src/nvim/ops.c#L5719)), and the...

> Any solutions or workarounds for this? You can try manually removing this code from you installed nvim-cmp: https://github.com/hrsh7th/nvim-cmp/blob/8f3c541407e691af6163e2447f3af1bd6e17f9a3/lua/cmp/entry.lua#L274-L282

Does this code ever get executed: https://github.com/tree-sitter/tree-sitter/blob/c712276676caa04c72357fe9ec10dd5515500e95/lib/src/subtree.c#L704-L708 `is_pure_insertion` is defined as: https://github.com/tree-sitter/tree-sitter/blob/c712276676caa04c72357fe9ec10dd5515500e95/lib/src/subtree.c#L680-L680 which means the code in question can be changed to: ```c else if (edit.old_end.bytes == padding.bytes && is_pure_insertion)...

> For the first question, I'm not sure why you'd have an instance where you don't have the trees but you somehow have the ranges for injection? After finding ranges...

Would something like this work? Every time we highlight, we can make lists of marks that end outside the current line for each layer, store them, and then reapply them...

Can we keep last syntax trees and `iter_captures()` on those?

> Can we keep last syntax trees and `iter_captures()` on those? Something like this: ```diff diff --git a/runtime/lua/vim/treesitter/highlighter.lua b/runtime/lua/vim/treesitter/highlighter.lua index 46f02628ad..68e3432a8a 100644 --- a/runtime/lua/vim/treesitter/highlighter.lua +++ b/runtime/lua/vim/treesitter/highlighter.lua @@ -131,6 +131,7 @@...

> ```diff > commit 0e7f0bd3958b66820da3c088009962bdcb029621 > Author: Riley Bruins > Date: Sun Mar 30 16:17:42 2025 -0700 > > fix(treesitter): eliminate flicker while editing > > This commit will not...

I know the minimal.lua is not very minimal. I bisected and found that the bug was introduced in cdc9baeaf89eb09f08427a09e3a0f86d56dcc812

Updated `minimal.lua` to be minimal