mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
feat(lsp): add per-client commands (#16101)
This commit is contained in:
committed by
GitHub
parent
7ae86c1d4c
commit
519d8deb08
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user