neoclide / coc-vetur

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

Can't rename in .vue files #58

Closed trickstival closed 3 years ago

trickstival commented 3 years ago

I have this remap for coc-rename:

nmap <leader>rn <Plug>(coc-rename)

When I execute it in .js files, it can rename symbols, but when I try to do it in .vue files, I get this error:

[coc.nvim] Rename provider not found for current document

It's weird, cause I can rename symbols on vscode in .vue files, but for some reason can't get it working with coc

chemzqm commented 3 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

ferrwan commented 3 years ago

Just want to confirm, is the rename function really doesn't work because the vls hasn't supported it yet (https://github.com/vuejs/vetur/issues/610) or there's a miss config? I'm having problem on this renaming function in file .vue too, other things (jump definition, jump references, snippet, completion) are working nicely though. image

yaegassy commented 3 years ago

@ferrwan "Rename" is not supported by vls itself.