diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-03-16 09:51:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-16 09:51:27 -0400 |
| commit | b8f1426a8670f765f159bb661b63e34f03d1db7f (patch) | |
| tree | 6bfd62734a6bbff67961e6602d305fbb02c5c15d /runtime/lua/vim/_meta/api.lua | |
| parent | 88a72efb465c35df49a2e9c576272f08f6dd93d6 (diff) | |
| parent | 97b064c9ac84bdaac65a4c4db81d11daa8f02719 (diff) | |
| download | rneovim-b8f1426a8670f765f159bb661b63e34f03d1db7f.tar.gz rneovim-b8f1426a8670f765f159bb661b63e34f03d1db7f.tar.bz2 rneovim-b8f1426a8670f765f159bb661b63e34f03d1db7f.zip | |
Merge #27223 nvim_open_tabpage
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 0510e2bef9..5c2e54f3ae 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1673,6 +1673,17 @@ function vim.api.nvim_load_context(dict) end --- @return any function vim.api.nvim_notify(msg, log_level, opts) end +--- Opens a new tabpage. +--- +--- @param buffer integer Buffer to open in the first window of the new tabpage. +--- Use 0 for current buffer. +--- @param enter boolean Enter the tabpage (make it the current tabpage). +--- @param config vim.api.keyset.tabpage_config Configuration for the new tabpage. Keys: +--- - after: Position to insert tabpage (default: -1; after current). +--- 0 = first, N = after Nth. +--- @return integer # Tabpage handle of the created tabpage +function vim.api.nvim_open_tabpage(buffer, enter, config) end + --- Open a terminal instance in a buffer --- --- By default (and currently the only option) the terminal will not be |