mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lsp: set buflisted when jumping to location (#12253)
This commit is contained in:
parent
f04a9a2c9a
commit
7432b3ca4c
@ -438,6 +438,7 @@ function M.jump_to_location(location)
|
|||||||
|
|
||||||
--- Jump to new location
|
--- Jump to new location
|
||||||
api.nvim_set_current_buf(bufnr)
|
api.nvim_set_current_buf(bufnr)
|
||||||
|
api.nvim_buf_set_option(0, 'buflisted', true)
|
||||||
local range = location.range or location.targetSelectionRange
|
local range = location.range or location.targetSelectionRange
|
||||||
local row = range.start.line
|
local row = range.start.line
|
||||||
local col = range.start.character
|
local col = range.start.character
|
||||||
|
Loading…
Reference in New Issue
Block a user