aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-10-21 15:52:47 +0200
committerGitHub <noreply@github.com>2023-10-21 15:52:47 +0200
commit40574b424f48308e06093031b1324509b64a8cc3 (patch)
tree2f7f83148d692a64c74a92eb7438ee26eac4310d /runtime
parent752c6ce4ad717620f34cc27e788fd9665c488565 (diff)
parentae4ca4edf89ece433b61e8bf92c412298b58d9ea (diff)
downloadrneovim-40574b424f48308e06093031b1324509b64a8cc3.tar.gz
rneovim-40574b424f48308e06093031b1324509b64a8cc3.tar.bz2
rneovim-40574b424f48308e06093031b1324509b64a8cc3.zip
Merge pull request #25624 from glepnir/fix_25598
feat(complete): support f flag for complete buffer name 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