mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-28 13:58:12 +02:00
fix(lsp): make_position_params with offset encoding. #6276
This commit is contained in:
parent
25abbf546d
commit
191b1c7d50
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ return {
|
|||
{
|
||||
"gD",
|
||||
function()
|
||||
local params = vim.lsp.util.make_position_params()
|
||||
local win = vim.api.nvim_get_current_win()
|
||||
local params = vim.lsp.util.make_position_params(win, "utf-16")
|
||||
LazyVim.lsp.execute({
|
||||
command = "typescript.goToSourceDefinition",
|
||||
arguments = { params.textDocument.uri, params.position },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue