aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-04 12:03:12 +0000
committerGitHub <noreply@github.com>2024-01-04 12:03:12 +0000
commit6635ec113fe69157001070e809bc5611e3d52014 (patch)
tree847a49ee396183dd31cff6a528e0d61b96fa7ea1 /runtime/lua/vim/lsp/util.lua
parentfa61e0c047954e7eb494ee02144a4dc71a42b3b2 (diff)
parent765729a145d3d8204ff68b1da0b5bb45c70262e2 (diff)
downloadrneovim-6635ec113fe69157001070e809bc5611e3d52014.tar.gz
rneovim-6635ec113fe69157001070e809bc5611e3d52014.tar.bz2
rneovim-6635ec113fe69157001070e809bc5611e3d52014.zip
Merge pull request #26791 from wookayin/gendoc
refactor(gen_vimdoc): general refactoring on vimdoc generation
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index ba7ce3c2b6..44465f6cff 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1069,7 +1069,7 @@ function M.show_document(location, offset_encoding, opts)
-- location may be Location or LocationLink
local range = location.range or location.targetSelectionRange
if range then
- --- Jump to new location (adjusting for encoding of characters)
+ -- Jump to new location (adjusting for encoding of characters)
local row = range.start.line
local col = get_line_byte_from_position(bufnr, range.start, offset_encoding)
api.nvim_win_set_cursor(win, { row + 1, col })