mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(lsp): lint warnings, default offset_encoding #24046
- fix lint / analysis warnings - locations_to_items(): get default offset_encoding from active client - character_offset(): get default offset_encoding from active client
This commit is contained in:
@ -33,11 +33,9 @@ local function execute_lens(lens, bufnr, client_id)
|
||||
|
||||
local client = vim.lsp.get_client_by_id(client_id)
|
||||
assert(client, 'Client is required to execute lens, client_id=' .. client_id)
|
||||
|
||||
client._exec_cmd(lens.command, { bufnr = bufnr }, function(...)
|
||||
local result = vim.lsp.handlers['workspace/executeCommand'](...)
|
||||
vim.lsp.handlers['workspace/executeCommand'](...)
|
||||
M.refresh()
|
||||
return result
|
||||
end)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user