prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.07k stars 303 forks source link

Add `options` to `lsp#ui#vim#rename()` to specify `server` #1545

Open tsukkee opened 4 months ago

tsukkee commented 4 months ago

This PR adds options to lsp#ui#vim#rename() to specify server.

My use case is following: Recently, I added the setting for the latest Vue Language Tools to vim-lsp-settings ( https://github.com/mattn/vim-lsp-settings/pull/728 ). We need to run both typescript-language-server and volar-server to use it but only typescript-language-server supports the renaming feature. Here, l:servers[0] is volar-server by accident in my environment so I cannot use the renaming feature. So, I'd like to specify typescript-langeuage-server for renaming in explicit way.