From ae4ca4edf89ece433b61e8bf92c412298b58d9ea Mon Sep 17 00:00:00 2001 From: glepnir Date: Fri, 13 Oct 2023 14:49:01 +0800 Subject: feat(complete): support f flag for complete buffer part --- runtime/doc/news.txt | 2 ++ runtime/doc/options.txt | 1 + runtime/lua/vim/_meta/options.lua | 1 + 3 files changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 6f2c6efe54..c090cfe166 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -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* diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index c8ea5ce67f..9dc382948c 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -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 diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index cc013112b3..83b30838ab 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -998,6 +998,7 @@ vim.bo.cms = vim.bo.commentstring --- `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 -- cgit