feat(complete): support f flag for complete buffer part

This commit is contained in:
glepnir
2023-10-13 14:49:01 +08:00
parent 195301c609
commit ae4ca4edf8
7 changed files with 66 additions and 2 deletions

View File

@@ -195,6 +195,8 @@ The following new APIs and features were added.
• Added |vim.snippet| for snippet expansion support.
• 'complete' option supports "f" flag for completing buffer names.
==============================================================================
CHANGED FEATURES *news-changed*

View File

@@ -1458,6 +1458,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|i_CTRL-X_CTRL-D|
] tag completion
t same as "]"
f scan the buffer names (as opposed to buffer contents)
Unloaded buffers are not loaded, thus their autocmds |:autocmd| are
not executed, this may lead to unexpected completions from some files