From 7432b3ca4ca6a5f8389c79fd17f20de22fc8e54b Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Thu, 7 May 2020 10:30:42 -0300 Subject: [PATCH] lsp: set buflisted when jumping to location (#12253) --- runtime/lua/vim/lsp/util.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 494eebf9ea..eaa5f0f02f 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -438,6 +438,7 @@ function M.jump_to_location(location) --- Jump to new location api.nvim_set_current_buf(bufnr) + api.nvim_buf_set_option(0, 'buflisted', true) local range = location.range or location.targetSelectionRange local row = range.start.line local col = range.start.character