From 026cfa28d0dccb7f1832d6fcca378518a4082fdb Mon Sep 17 00:00:00 2001 From: dundargoc Date: Thu, 20 Feb 2025 11:52:03 +0100 Subject: docs: misc Co-authored-by: Au. Co-authored-by: Daniel Rainer Co-authored-by: Evgeni Chasnovski Co-authored-by: Lewis Russell Co-authored-by: Luuk van Baal Co-authored-by: Pierre Barbin Co-authored-by: Riley Bruins Co-authored-by: Yinzuo Jiang Co-authored-by: phanium <91544758+phanen@users.noreply.github.com> Co-authored-by: zeertzjq --- runtime/lua/vim/_meta/api.lua | 3 +-- runtime/lua/vim/_meta/builtin_types.lua | 4 ++-- runtime/lua/vim/_meta/vimfn.lua | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'runtime/lua/vim/_meta') diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index b890b64174..63a7bcc37d 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -630,8 +630,7 @@ function vim.api.nvim_buf_line_count(buffer) end --- otherwise the same as "trunc". --- - ephemeral : for use with `nvim_set_decoration_provider()` --- callbacks. The mark will only be used for the current ---- redraw cycle, and not be permantently stored in the ---- buffer. +--- redraw cycle, and not be permanently stored in the buffer. --- - right_gravity : boolean that indicates the direction --- the extmark will be shifted in when new text is inserted --- (true for right, false for left). Defaults to true. diff --git a/runtime/lua/vim/_meta/builtin_types.lua b/runtime/lua/vim/_meta/builtin_types.lua index eae76d80d7..9dd0374486 100644 --- a/runtime/lua/vim/_meta/builtin_types.lua +++ b/runtime/lua/vim/_meta/builtin_types.lua @@ -259,12 +259,12 @@ --- write. The number is the write count. The --- first write has number 1, the last one the --- "save_last" mentioned above. ---- @field save integer +--- @field save? integer --- --- Alternate entry. This is again a List of undo --- blocks. Each item may again have an "alt" --- item. ---- @field alt vim.fn.undotree.entry[] +--- @field alt? vim.fn.undotree.entry[] --- @class vim.fn.undotree.ret --- diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 6ffd0e9619..2b4f1a32b0 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -5868,7 +5868,7 @@ function vim.fn.matchend(expr, pat, start, count) end --- --- @param list any[] --- @param str string ---- @param dict? string +--- @param dict? table --- @return any function vim.fn.matchfuzzy(list, str, dict) end @@ -5895,7 +5895,7 @@ function vim.fn.matchfuzzy(list, str, dict) end --- --- @param list any[] --- @param str string ---- @param dict? string +--- @param dict? table --- @return any function vim.fn.matchfuzzypos(list, str, dict) end -- cgit