diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-04-24 07:34:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-24 07:34:37 +0800 |
| commit | 921752d3e28547c293128aaf02a7e8ceb6c043fb (patch) | |
| tree | 6ee06d0469b54653a97dbfe4f180e353c9b1b326 /runtime/lua/vim | |
| parent | 652c3e76c7120adfd074994cb4524e4870df0389 (diff) | |
| parent | 3d126ec89f230bcdbb560783ba4ad21a708c974b (diff) | |
| download | rneovim-921752d3e28547c293128aaf02a7e8ceb6c043fb.tar.gz rneovim-921752d3e28547c293128aaf02a7e8ceb6c043fb.tar.bz2 rneovim-921752d3e28547c293128aaf02a7e8ceb6c043fb.zip | |
Merge pull request #33565 from zeertzjq/vim-9.1.1329
vim-patch:9.1.{1329,1331,1338}
Diffstat (limited to 'runtime/lua/vim')
| -rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index c1387954df..a253a87a49 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -919,6 +919,28 @@ function vim.fn.cindent(lnum) end --- @param win? integer function vim.fn.clearmatches(win) end +--- Returns a |Dictionary| with information about cmdline +--- completion. See |cmdline-completion|. +--- The items are: +--- cmdline_orig The original command-line string before +--- completion began. +--- pum_visible |TRUE| if popup menu is visible. +--- See |pumvisible()|. +--- matches List of all completion candidates. Each item +--- is a string. +--- selected Selected item index. First index is zero. +--- Index is -1 if no item is selected (showing +--- typed text only, or the last completion after +--- no item is selected when using the <Up> or +--- <Down> keys) +--- +--- Returns an empty |Dictionary| if no completion was attempted, +--- if there was only one candidate and it was fully completed, or +--- if an error occurred. +--- +--- @return table<string,any> +function vim.fn.cmdcomplete_info() end + --- The result is a Number, which is the byte index of the column --- position given with {expr}. --- For accepted positions see |getpos()|. |