aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/api.txt
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-12-16 12:41:05 +0100
committerGitHub <noreply@github.com>2023-12-16 12:41:05 +0100
commit5ed55ff14c8b7e346811cb6228bf63fb5106bae9 (patch)
treed27158d56da5810b942a3d561ae15b2711b2a7cd /runtime/doc/api.txt
parent7e7da962de404e3a0952bcc0adc6fbe53eda3cfb (diff)
parente38027ef69f75653ee953b16ebf4a8652a3fb748 (diff)
downloadrneovim-5ed55ff14c8b7e346811cb6228bf63fb5106bae9.tar.gz
rneovim-5ed55ff14c8b7e346811cb6228bf63fb5106bae9.tar.bz2
rneovim-5ed55ff14c8b7e346811cb6228bf63fb5106bae9.zip
Merge pull request #24723 from glepnir/popup
feat(complete): completeopt support popup like vim
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r--runtime/doc/api.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 48bbdc33df..72ac357ac0 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -700,6 +700,21 @@ nvim_chan_send({chan}, {data}) *nvim_chan_send()*
• {chan} id of the channel
• {data} data to write. 8-bit clean: can contain NUL bytes.
+nvim_complete_set({index}, {*opts}) *nvim_complete_set()*
+ Set info for the completion candidate index. if the info was shown in a
+ window, then the window and buffer ids are returned for further
+ customization. If the text was not shown, an empty dict is returned.
+
+ Parameters: ~
+ • {index} the completion candidate index
+ • {opts} Optional parameters.
+ • info: (string) info text.
+
+ Return: ~
+ Dictionary containing these keys:
+ • winid: (number) floating window id
+ • bufnr: (number) buffer id in floating window
+
nvim_create_buf({listed}, {scratch}) *nvim_create_buf()*
Creates a new, empty, unnamed buffer.