mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
Merge pull request #26791 from wookayin/gendoc
refactor(gen_vimdoc): general refactoring on vimdoc generation
This commit is contained in:
3
runtime/lua/vim/_meta/api.lua
generated
3
runtime/lua/vim/_meta/api.lua
generated
@@ -73,6 +73,9 @@ function vim.api.nvim__id_dictionary(dct) end
|
||||
function vim.api.nvim__id_float(flt) end
|
||||
|
||||
--- @private
|
||||
--- NB: if your UI doesn't use hlstate, this will not return hlstate first
|
||||
--- time.
|
||||
---
|
||||
--- @param grid integer
|
||||
--- @param row integer
|
||||
--- @param col integer
|
||||
|
@@ -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 })
|
||||
|
@@ -581,7 +581,7 @@ function vim.tbl_isarray(t)
|
||||
local count = 0
|
||||
|
||||
for k, _ in pairs(t) do
|
||||
--- Check if the number k is an integer
|
||||
-- Check if the number k is an integer
|
||||
if type(k) == 'number' and k == math.floor(k) then
|
||||
count = count + 1
|
||||
else
|
||||
|
@@ -1,4 +1,4 @@
|
||||
--- Text processing functions.
|
||||
-- Text processing functions.
|
||||
|
||||
local M = {}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user