LSP: Add jump when calling gotodef (#11521)

This commit is contained in:
Jakub Łuczyński 2019-12-07 12:34:22 +01:00 committed by Ashkan Kiani
parent 0e6c6261e1
commit 30ed245d00
1 changed files with 2 additions and 0 deletions

View File

@ -313,6 +313,8 @@ end
function M.jump_to_location(location)
if location.uri == nil then return end
local bufnr = vim.uri_to_bufnr(location.uri)
-- Save position in jumplist
vim.cmd "normal! m'"
-- TODO(ashkan) use tagfunc here to update tagstack.
api.nvim_set_current_buf(bufnr)
local row = location.range.start.line