neoclide / coc-vimtex

vimtex integration for coc.nvim
130 stars 4 forks source link

Returns true for `echo CocHasProvider("format")` #9

Closed GordianDziwis closed 4 years ago

GordianDziwis commented 4 years ago

I have this line in my vimrc to make ale and coc play nicely together:

nmap <expr><localleader>f  CocHasProvider("format") ? '<Plug>(coc-format)' : ':ALEFix<cr>'
kabouzeid commented 4 years ago

What is the problem?

kabouzeid commented 4 years ago

By the way, you might want to try out https://github.com/fannheyward/coc-texlab

GordianDziwis commented 4 years ago

Should not it return false, because coc-vimtex does not provide formating? call CocActionAsync('format') seems to have no effect.

GordianDziwis commented 4 years ago

Thanks, I will try it out.