neovim ci( bug for nested parentheses

Viewed 19

Given this code:

(
|  (some text)
)

where | is the cursor position. After pressing "ci(", it becomes

(
   (|)
)

I would expect the "ci(" to be applied on the outer parentheses and becomes

(

)

My neovim version is 7.0. VScode and doom-emacs work as expected. I tried nvim --clean, it also works as expected.

Is this the expected or a something wrong in my config? But, even I remove all my config file, it is still applying on the inner parentheses.

0 Answers
Related