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

92997dda78

Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
This commit is contained in:
zeertzjq
2023-08-21 07:29:49 +08:00
committed by GitHub
parent ac99e63d73
commit 694814cdd5
7 changed files with 87 additions and 6 deletions

View File

@@ -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