mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 16:23:48 +00:00
docs(api): nvim_open_win "split" with negative "win" #38032
Acts like :topleft/botright.
This commit is contained in:
@@ -3923,7 +3923,8 @@ nvim_open_win({buffer}, {enter}, {config}) *nvim_open_win()*
|
||||
• vertical: Split vertically |:vertical|.
|
||||
• width: Window width (in character cells). Minimum of 1.
|
||||
• win: |window-ID| window to split, or relative window when
|
||||
creating a float (relative="win").
|
||||
creating a float (relative="win"). When splitting,
|
||||
negative value works like |:topleft|, |:botright|.
|
||||
• zindex: Stacking order. floats with higher `zindex` go on
|
||||
top on floats with lower indices. Must be larger than
|
||||
zero. The following screen elements have hard-coded
|
||||
|
||||
4
runtime/lua/vim/_meta/api.lua
generated
4
runtime/lua/vim/_meta/api.lua
generated
@@ -1847,8 +1847,8 @@ function vim.api.nvim_open_term(buffer, opts) end
|
||||
--- Default is `"left"`.
|
||||
--- - vertical: Split vertically `:vertical`.
|
||||
--- - width: Window width (in character cells). Minimum of 1.
|
||||
--- - win: `window-ID` window to split, or relative window when creating a
|
||||
--- float (relative="win").
|
||||
--- - win: `window-ID` window to split, or relative window when creating a float (relative="win").
|
||||
--- When splitting, negative value works like `:topleft`, `:botright`.
|
||||
--- - zindex: Stacking order. floats with higher `zindex` go on top on
|
||||
--- floats with lower indices. Must be larger than zero. The
|
||||
--- following screen elements have hard-coded z-indices:
|
||||
|
||||
@@ -183,8 +183,8 @@
|
||||
/// Default is `"left"`.
|
||||
/// - vertical: Split vertically |:vertical|.
|
||||
/// - width: Window width (in character cells). Minimum of 1.
|
||||
/// - win: |window-ID| window to split, or relative window when creating a
|
||||
/// float (relative="win").
|
||||
/// - win: |window-ID| window to split, or relative window when creating a float (relative="win").
|
||||
/// When splitting, negative value works like |:topleft|, |:botright|.
|
||||
/// - zindex: Stacking order. floats with higher `zindex` go on top on
|
||||
/// floats with lower indices. Must be larger than zero. The
|
||||
/// following screen elements have hard-coded z-indices:
|
||||
|
||||
Reference in New Issue
Block a user