Skip to content

Commit 088c91e

Browse files
author
teatimeguest
authored
use vim.lsp.util.show_document (#18)
1 parent 11d7a71 commit 088c91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lsplinks.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function M.open(uri)
131131
return false
132132
end
133133
if uri:find("^file:/") then
134-
util.jump_to_location({ uri = remove_uri_fragment(uri) }, "utf-8", true)
134+
util.show_document({ uri = remove_uri_fragment(uri) }, "utf-8", { reuse_win = true, focus = true })
135135
local line_no, col_no = uri:match(".-#(%d+),(%d+)")
136136
if line_no then
137137
api.nvim_win_set_cursor(0, { tonumber(line_no), tonumber(col_no) - 1 })

0 commit comments

Comments
 (0)