mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(lsp): move client code to a regular Lua class
Problem: The LSP client code is implemented as a complicated closure-class (class defined in a single function). Solution: Move LSP client code to a more conventional Lua class and move to a separate file.
This commit is contained in:

committed by
Lewis Russell

parent
cca8a78ea2
commit
59cf827f99
@@ -652,7 +652,7 @@ local function on_code_action_results(results, opts)
|
||||
end
|
||||
if action.command then
|
||||
local command = type(action.command) == 'table' and action.command or action
|
||||
client._exec_cmd(command, ctx)
|
||||
client:_exec_cmd(command, ctx)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user