diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-04 12:03:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 12:03:12 +0000 |
commit | 6635ec113fe69157001070e809bc5611e3d52014 (patch) | |
tree | 847a49ee396183dd31cff6a528e0d61b96fa7ea1 /runtime/lua | |
parent | fa61e0c047954e7eb494ee02144a4dc71a42b3b2 (diff) | |
parent | 765729a145d3d8204ff68b1da0b5bb45c70262e2 (diff) | |
download | rneovim-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')
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 3 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 2 | ||||
-rw-r--r-- | runtime/lua/vim/shared.lua | 2 | ||||
-rw-r--r-- | runtime/lua/vim/text.lua | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 02128b66b9..e85f81f5f9 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -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 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 }) diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index 87ab21a28f..24bc97bf8e 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -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 diff --git a/runtime/lua/vim/text.lua b/runtime/lua/vim/text.lua index cfb0f9b821..576b962838 100644 --- a/runtime/lua/vim/text.lua +++ b/runtime/lua/vim/text.lua @@ -1,4 +1,4 @@ ---- Text processing functions. +-- Text processing functions. local M = {} |