I have autocmd FileType tex let b:coc_pairs = [["$", "$"]] in my init.vim and when I type a $, then the pair $|$ is created, but if I press backspace then only the first character is deleted, leaving me with |$.
So the pairs.enableBackspace doesn't work for user defined pairs.
This error is not present in any of the other pairs like (), {} or "".
@chemzqm
:cocinfo
## versions
vim version: NVIM v0.5.0
node version: v16.6.2
coc.nvim version: 0.0.80-fe35d5fe2b
coc.nvim directory: /home/jfab/.config/nvim/plugged/coc.nvim
term: alacritty
platform: linux
## Log of coc.nvim
2021-08-12T21:11:04.109 INFO (pid:37594) [plugin] - coc.nvim 0.0.80-fe35d5fe2b initialized with node: v16.6.2 after 127ms
2021-08-12T21:11:08.483 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ]
2021-08-12T21:11:09.420 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:12.212 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iKA==0' ]
2021-08-12T21:11:12.926 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:14.025 WARN (pid:37594) [handler-format] - Format on type provider not found for buffer: 1
2021-08-12T21:11:14.568 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ]
2021-08-12T21:11:15.003 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:15.554 WARN (pid:37594) [handler-format] - Format on type provider not found for buffer: 1
2021-08-12T21:11:16.765 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:16.934 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:17.259 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:20.196 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iKA==0' ]
2021-08-12T21:11:20.744 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:21.339 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ]
2021-08-12T21:11:21.662 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:22.691 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ]
2021-08-12T21:11:23.126 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:23.735 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ]
2021-08-12T21:11:24.315 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ]
2021-08-12T21:11:27.150 INFO (pid:37594) [attach] - receive notification: showInfo []
I have
autocmd FileType tex let b:coc_pairs = [["$", "$"]]
in my init.vim and when I type a $, then the pair $|$ is created, but if I press backspace then only the first character is deleted, leaving me with |$. So thepairs.enableBackspace
doesn't work for user defined pairs. This error is not present in any of the other pairs like (), {} or "". @chemzqm:cocinfo
## versions vim version: NVIM v0.5.0 node version: v16.6.2 coc.nvim version: 0.0.80-fe35d5fe2b coc.nvim directory: /home/jfab/.config/nvim/plugged/coc.nvim term: alacritty platform: linux ## Log of coc.nvim 2021-08-12T21:11:04.109 INFO (pid:37594) [plugin] - coc.nvim 0.0.80-fe35d5fe2b initialized with node: v16.6.2 after 127ms 2021-08-12T21:11:08.483 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ] 2021-08-12T21:11:09.420 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:12.212 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iKA==0' ] 2021-08-12T21:11:12.926 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:14.025 WARN (pid:37594) [handler-format] - Format on type provider not found for buffer: 1 2021-08-12T21:11:14.568 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ] 2021-08-12T21:11:15.003 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:15.554 WARN (pid:37594) [handler-format] - Format on type provider not found for buffer: 1 2021-08-12T21:11:16.765 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:16.934 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:17.259 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:20.196 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iKA==0' ] 2021-08-12T21:11:20.744 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:21.339 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ] 2021-08-12T21:11:21.662 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:22.691 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ] 2021-08-12T21:11:23.126 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:23.735 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iJA==1' ] 2021-08-12T21:11:24.315 INFO (pid:37594) [attach] - Request action: doKeymap [ 'iPGJzPg==0' ] 2021-08-12T21:11:27.150 INFO (pid:37594) [attach] - receive notification: showInfo []