diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-07-06 09:51:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-06 09:51:38 +0800 |
| commit | 025c0703123fac78cf93535dd284d00c3d64a245 (patch) | |
| tree | d13077c3ad929a20ed2b046679502141791e5128 /runtime/lua/vim | |
| parent | 8fe4e120a2de558fddbb91ba5438d78f3dbd926a (diff) | |
| parent | 9c04eb02adde4f7daae2c4986ed58037358ce4ad (diff) | |
| download | rneovim-025c0703123fac78cf93535dd284d00c3d64a245.tar.gz rneovim-025c0703123fac78cf93535dd284d00c3d64a245.tar.bz2 rneovim-025c0703123fac78cf93535dd284d00c3d64a245.zip | |
Merge pull request #34801 from zeertzjq/vim-9.1.1505
vim-patch:9.1.{1505,1509}
Diffstat (limited to 'runtime/lua/vim')
| -rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 4443e8c729..d690eaa34a 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -3002,6 +3002,9 @@ function vim.fn.getcmdcomplpat() end --- |getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|. --- Returns an empty string when completion is not defined. --- +--- To get the type of the command-line completion for the +--- specified string, use |getcompletiontype()|. +--- --- @return string function vim.fn.getcmdcompltype() end @@ -3152,6 +3155,16 @@ function vim.fn.getcmdwintype() end --- @return string[] function vim.fn.getcompletion(pat, type, filtered) end +--- Return the type of the command-line completion using {pat}. +--- When no corresponding completion type is found, an empty +--- string is returned. +--- To get the current command-line completion type, use +--- |getcmdcompltype()|. +--- +--- @param pat string +--- @return string +function vim.fn.getcompletiontype(pat) end + --- Get the position of the cursor. This is like getpos('.'), but --- includes an extra "curswant" item in the list: --- [0, lnum, col, off, curswant] ~ |