diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-30 05:12:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 05:12:51 -0700 |
commit | 0330dd9e69de7567fd2479c0203b778a1d2dce2f (patch) | |
tree | 3ff04490ad0139292562db1b94178084f02d6459 /runtime/lua/vim/_meta/api.lua | |
parent | 71cf75f96a67aeb79ac3af6aa829bac81bd2d33d (diff) | |
download | rneovim-0330dd9e69de7567fd2479c0203b778a1d2dce2f.tar.gz rneovim-0330dd9e69de7567fd2479c0203b778a1d2dce2f.tar.bz2 rneovim-0330dd9e69de7567fd2479c0203b778a1d2dce2f.zip |
fix(api): mark nvim__complete_set as experimental #28579
Problem:
nvim_complete_set was added in 5ed55ff14c8b7e346811cb6228bf63fb5106bae9
but needs more bake time.
Solution:
Rename it, mark it as experimental.
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 7d20d90990..58fa9af8cd 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -24,6 +24,19 @@ function vim.api.nvim__buf_redraw_range(buffer, first, last) end function vim.api.nvim__buf_stats(buffer) end --- @private +--- EXPERIMENTAL: this api may change in the future. +--- +--- Sets info for the completion item at the given index. If the info text was +--- shown in a window, returns the window and buffer ids, or empty dict if not +--- shown. +--- +--- @param index integer Completion candidate index +--- @param opts vim.api.keyset.complete_set Optional parameters. +--- • info: (string) info text. +--- @return table<string,any> +function vim.api.nvim__complete_set(index, opts) end + +--- @private --- @return string function vim.api.nvim__get_lib_dir() end @@ -822,16 +835,6 @@ function vim.api.nvim_command(command) end --- @return string function vim.api.nvim_command_output(command) end ---- 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. ---- ---- @param index integer the completion candidate index ---- @param opts vim.api.keyset.complete_set Optional parameters. ---- • info: (string) info text. ---- @return table<string,any> -function vim.api.nvim_complete_set(index, opts) end - --- Create or get an autocommand group `autocmd-groups`. --- --- To get an existing group id, do: |