astoff / digestif

A language server for TeX and friends
Other
255 stars 6 forks source link

extra character "\" added before "{" when using environment snippet in neovim with coc.nvim #3

Closed alexfanqi closed 5 years ago

alexfanqi commented 5 years ago

I installed digestif as root on ubuntu 18.04 and use it with neovim v0.4.0-dev and coc.nvim 0.0.66. Everything works pretty well except the extra "//" that I have to move cursor back and manually delete it. For example, when I type \begin and get completion prompt "begin~ {environment} [LS]" and I hit enter to choose it. Then I get "\begin\{enviroment}". An extra "\" is added before "{".

My coc.nvim config is like "digestif": {
command : digestif ,
args : [],
filetypes : [
tex ,
plaintex ,
bibtex
],
}

astoff commented 5 years ago

Great to know it (mostly) works on neovim/coc!

I made the necessary change directly in the master branch. Does it work for you now?

alexfanqi commented 5 years ago

yes, it works perfectly now. Thanks for the great job and this great project!