Skip to content

Commit

Permalink
peek definition: set jumplist before open float window close #1265
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Aug 29, 2023
1 parent e21392c commit d1a8ac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lspsaga/definition.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ function def:peek_definition(method)
self.pending_request = true
local count = #util.get_client_by_method(method_name)

--set jumplist
vim.cmd("normal! m'")

lsp.buf_request(current_buf, method_name, params, function(_, result, context)
count = count - 1
self.pending_request = false
Expand Down

0 comments on commit d1a8ac8

Please sign in to comment.