aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-01 03:14:59 -0700
committerGitHub <noreply@github.com>2021-11-01 03:14:59 -0700
commit519d8deb08f369c559e7cbd61627c56db88623f1 (patch)
treef215ba8c220931f08bd2b67660680316df2fea49 /runtime/lua/vim/lsp/buf.lua
parent7ae86c1d4caffec57e2d4d44e40a9feba91d96dd (diff)
downloadrneovim-519d8deb08f369c559e7cbd61627c56db88623f1.tar.gz
rneovim-519d8deb08f369c559e7cbd61627c56db88623f1.tar.bz2
rneovim-519d8deb08f369c559e7cbd61627c56db88623f1.zip
feat(lsp): add per-client commands (#16101)
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index fdad9a91fc..6d85039958 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -480,7 +480,7 @@ local function on_code_action_results(results, ctx)
end
if action.command then
local command = type(action.command) == 'table' and action.command or action
- local fn = vim.lsp.commands[command.command]
+ local fn = client.commands[command.command] or vim.lsp.commands[command.command]
if fn then
local enriched_ctx = vim.deepcopy(ctx)
enriched_ctx.client_id = client.id