Description of the problem
In a simple project, how can I automatically insert the import for a component that coc-vetur is auto-completing for me?
Take this example in a default vue project created with vue cli create:
if I close the tag by typing > it does not auto-complete it
Running the organize import command recommended on the coc.nvim repo says [coc.nvim] Organize import action not found.
Pressing enter, tab, etc all seem to skip over it or not work.
All relevant CoC/vue related configuration in my init.vim
let g:coc_global_extensions = [ 'coc-vetur']
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
let g:LanguageClient_serverCommands = {
\ 'vue': ['vls']
\ }
I'm certain that this is just me being silly in some way, hopefully I included enough detail, I can see that VLS is working I just can't get it to automatically insert the import...
It seemed to fix itself after I reinstalled everything. Now when I tab down to the option and press the right arrow key it auto-inserts it, in case anyone else has the same dumb issue as me.
Description of the problem In a simple project, how can I automatically insert the import for a component that coc-vetur is auto-completing for me?
Take this example in a default vue project created with vue cli create:
[coc.nvim] Organize import action not found.
All relevant CoC/vue related configuration in my init.vim
I'm certain that this is just me being silly in some way, hopefully I included enough detail, I can see that VLS is working I just can't get it to automatically insert the import...