diff options
author | Gabriel Sanches <gabriel@gsr.dev> | 2020-05-07 10:30:42 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 09:30:42 -0400 |
commit | 7432b3ca4ca6a5f8389c79fd17f20de22fc8e54b (patch) | |
tree | 050980b01b53c0458f03c11b488b2d908b0868e5 /runtime/lua/vim/lsp/util.lua | |
parent | f04a9a2c9aa68f98a79b8d7e9917719a8be6049b (diff) | |
download | rneovim-7432b3ca4ca6a5f8389c79fd17f20de22fc8e54b.tar.gz rneovim-7432b3ca4ca6a5f8389c79fd17f20de22fc8e54b.tar.bz2 rneovim-7432b3ca4ca6a5f8389c79fd17f20de22fc8e54b.zip |
lsp: set buflisted when jumping to location (#12253)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |