Merge #27223 nvim_open_tabpage

This commit is contained in:
Justin M. Keyes
2026-03-16 09:51:27 -04:00
committed by GitHub
10 changed files with 534 additions and 47 deletions

View File

@@ -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

View File

@@ -437,6 +437,9 @@ error('Cannot require a meta file')
--- @field scoped? boolean
--- @field _subpriority? integer
--- @class vim.api.keyset.tabpage_config
--- @field after? integer
--- @class vim.api.keyset.user_command
--- @field addr? any
--- @field bang? boolean