diff options
| author | Chinmay Dalal <dalal.chinmay.0101@gmail.com> | 2022-01-14 21:24:23 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-14 16:54:23 +0100 |
| commit | 3bf4d4b4d075fb190edb9c19ac940f237a79a589 (patch) | |
| tree | 95120b8e5e3def427775069f018171d65a6d8d67 /lua/telescope/builtin/lsp.lua | |
| parent | 015a35626d5a293dc9c19dc2bb301f25850961f6 (diff) | |
fix (nightly): add offset encoding to vim.lsp.util.jump_to_location() call (#1688)
Diffstat (limited to 'lua/telescope/builtin/lsp.lua')
| -rw-r--r-- | lua/telescope/builtin/lsp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua index 3992ba6..c2d1b76 100644 --- a/lua/telescope/builtin/lsp.lua +++ b/lua/telescope/builtin/lsp.lua @@ -47,7 +47,7 @@ local function list_or_jump(action, title, opts) opts = opts or {} local params = vim.lsp.util.make_position_params() - vim.lsp.buf_request(0, action, params, function(err, result, _ctx, _config) + vim.lsp.buf_request(0, action, params, function(err, result, ctx, _config) if err then vim.api.nvim_err_writeln("Error when executing " .. action .. " : " .. err.message) return @@ -72,7 +72,7 @@ local function list_or_jump(action, title, opts) elseif opts.jump_type == "vsplit" then vim.cmd "vnew" end - vim.lsp.util.jump_to_location(flattened_results[1]) + vim.lsp.util.jump_to_location(flattened_results[1], vim.lsp.get_client_by_id(ctx.client_id).offset_encoding) else local locations = vim.lsp.util.locations_to_items(flattened_results) pickers.new(opts, { |
