neoclide / coc-vetur

Vue language server extension for coc.nvim
219 stars 7 forks source link

1.1.12 No longer shows LS snippets? #47

Closed npearson72 closed 3 years ago

npearson72 commented 4 years ago

After upgrading from 1.1.11, my LS Vue snippets no longer appear in the omnicompletion menu.

suciptoid commented 4 years ago

Facing same issue here

Version: 1.1.12

joaopms commented 4 years ago

Seems like a problem with vls (see https://github.com/vuejs/vetur/issues/2148).

To fix this, specify a custom vls path that uses vls >= 0.5.0. For me, it's as simple as npm install -g vls and then setting vetur.dev.vlsPath (in :CocConfig) to /usr/lib/node_modules/vls (you need to specify the whole folder, not the binary). You can also install it somewhere else, just make sure you're pointing vetur.dev.vlsPath to the correct directory.

suciptoid commented 4 years ago

Thanks @joaopms, btw the configuration key is "vetur.dev.vlsPath"

joaopms commented 4 years ago

Thanks @joaopms, btw the configuration key is "vetur.dev.vlsPath"

I've updated my comment, thank you!