From 694814cdd54ac245d1f4d2c28dce7e9132fcb616 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 21 Aug 2023 07:29:49 +0800 Subject: vim-patch:9.0.1774: no support for custom cmdline completion (#24808) Problem: no support for custom cmdline completion Solution: Add new vimscript functions Add the following two functions: - getcmdcompltype() returns custom and customlist functions - getcompletion() supports both custom and customlist closes: vim/vim#12228 https://github.com/vim/vim/commit/92997dda789ad8061841128cbc99b15ec0374411 Co-authored-by: Shougo Matsushita --- runtime/lua/vim/_meta/vimfn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 030f268f81..300210b296 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -2871,7 +2871,9 @@ function vim.fn.getcmdwintype() end --- color color schemes --- command Ex command --- compiler compilers ---- diff_buffer |:diffget| and |:diffput| completion +--- custom,{func} custom completion, defined via {func} +--- customlist,{func} custom completion, defined via {func} +--- diff_buffer |:diffget| and |:diffput| completion --- dir directory names --- environment environment variable names --- event autocommand events -- cgit