aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorfrancisco souza <108725+fsouza@users.noreply.github.com>2021-10-08 14:30:18 -0400
committerGitHub <noreply@github.com>2021-10-08 11:30:18 -0700
commitfcc11d5942779b57257a75e995068fedbf116e34 (patch)
treee601b0bc6cf715c6239156375be90fc83b185919 /runtime/lua/vim/lsp.lua
parentd5dd0aa1e633691ea6fa9b366b366a0a13cf7eba (diff)
downloadrneovim-fcc11d5942779b57257a75e995068fedbf116e34.tar.gz
rneovim-fcc11d5942779b57257a75e995068fedbf116e34.tar.bz2
rneovim-fcc11d5942779b57257a75e995068fedbf116e34.zip
fix(lsp): add textDocument/prepareRename to capability map (#15961)
This is a simple fix for #15899, as it should at least stop calling `prepareRename` on servers that don't support renaming. I imagine a better fix would be to inspect the actual value for, but that requires some plumbing changes on how capabilities are evaluated before sending requests out. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r--runtime/lua/vim/lsp.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index ac8657dbd7..a9e27cf6ac 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -41,6 +41,7 @@ lsp._request_name_to_capability = {
['textDocument/documentSymbol'] = 'document_symbol';
['textDocument/prepareCallHierarchy'] = 'call_hierarchy';
['textDocument/rename'] = 'rename';
+ ['textDocument/prepareRename'] = 'rename';
['textDocument/codeAction'] = 'code_action';
['textDocument/codeLens'] = 'code_lens';
['codeLens/resolve'] = 'code_lens_resolve';