diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-01 03:14:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 03:14:59 -0700 |
commit | 519d8deb08f369c559e7cbd61627c56db88623f1 (patch) | |
tree | f215ba8c220931f08bd2b67660680316df2fea49 /runtime/lua/vim/lsp/buf.lua | |
parent | 7ae86c1d4caffec57e2d4d44e40a9feba91d96dd (diff) | |
download | rneovim-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.lua | 2 |
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 |