coc-snippets
coc-snippets copied to clipboard
Wrong variable selection position at the beginning of the line
my snippets define
snippet set "a = b;" w
${1:\$} = ${2};
endsnippet
my script
use x[y]z
to selected y
set
# input enter
$[ ]= ;
# expect
[$] = ;
This problem occurs when the area to be selected is at the beginning of the row.
coc-snippets Version: 3.1.10
CocInfo
versions
vim version: VIM - Vi IMproved 9.0 9002070 node version: v21.1.0 coc.nvim version: 0.0.82-3014125 2023-04-11 14:28:54 +0800 coc.nvim directory: /home/lrne/.vim/plugged/coc.nvim term: dumb platform: linux
Log of coc.nvim
2023-11-10T16:53:03.657 INFO (pid:9428) [plugin] - coc.nvim initialized with node: v21.1.0 after 382 2023-11-10T16:53:07.655 INFO (pid:9428) [attach] - receive notification: showInfo []