aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2023-10-13 14:49:01 +0800
committerglepnir <glephunter@gmail.com>2023-10-21 20:06:36 +0800
commitae4ca4edf89ece433b61e8bf92c412298b58d9ea (patch)
tree7429cb148de4b178d5e6de0c1252eec5d768386a /runtime
parent195301c60969c7ce97b1ef3a3caaf4965da1abd5 (diff)
downloadrneovim-ae4ca4edf89ece433b61e8bf92c412298b58d9ea.tar.gz
rneovim-ae4ca4edf89ece433b61e8bf92c412298b58d9ea.tar.bz2
rneovim-ae4ca4edf89ece433b61e8bf92c412298b58d9ea.zip
feat(complete): support f flag for complete buffer part
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/news.txt2
-rw-r--r--runtime/doc/options.txt1
-rw-r--r--runtime/lua/vim/_meta/options.lua1
3 files changed, 4 insertions, 0 deletions
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