aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-03-14 17:44:06 -0400
committerGitHub <noreply@github.com>2026-03-14 17:44:06 -0400
commit8c2b6d6062cbfe01acd8cfc396dab56bac09253e (patch)
tree12bf4e87e36da984a3d3168046a330aac671a860 /runtime
parent0a9d6dc9aae61374ed6ec91c68e05b27e19cb108 (diff)
parent3115e3d0d11e0e02ba9040ac1a7bb032afa762bb (diff)
downloadrneovim-8c2b6d6062cbfe01acd8cfc396dab56bac09253e.tar.gz
rneovim-8c2b6d6062cbfe01acd8cfc396dab56bac09253e.tar.bz2
rneovim-8c2b6d6062cbfe01acd8cfc396dab56bac09253e.zip
Merge #35816 nvim_win_set_config can move floatwin to another tabpage
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt8
-rw-r--r--runtime/doc/news.txt1
-rw-r--r--runtime/lua/vim/_meta/api.lua5
3 files changed, 9 insertions, 5 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 318ba96605..3813792418 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -3921,9 +3921,11 @@ nvim_open_win({buffer}, {enter}, {config}) *nvim_open_win()*
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"). When splitting,
- negative value works like |:topleft|, |:botright|.
+ • win: |window-ID| target window. Can be in a different tab
+ page. Determines the window to split (negative values act
+ like |:topleft|, |:botright|), the relative window for a
+ `relative="win"` float, or just the target tab page
+ (inferred from the window) for others.
• 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
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index e8c52a8ca9..7e5f7565b1 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -167,6 +167,7 @@ API
they were so specified in `nvim_create_user_command()`.
• |nvim_open_win()| floating windows can show a 'statusline'. Plugins can use
`style='minimal'` or `:setlocal statusline=` to hide the statusline.
+• |nvim_win_set_config()| can move windows to other tab pages as floats.
• Added experimental |nvim__exec_lua_fast()| to allow remote API clients to
execute code while nvim is blocking for input.
• |vim.secure.trust()| accepts `path` for the `allow` action.
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua
index 975db4ac3b..0510e2bef9 100644
--- a/runtime/lua/vim/_meta/api.lua
+++ b/runtime/lua/vim/_meta/api.lua
@@ -1848,8 +1848,9 @@ 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").
---- When splitting, negative value works like `:topleft`, `:botright`.
+--- - win: `window-ID` target window. Can be in a different tab page. Determines the window to
+--- split (negative values act like `:topleft`, `:botright`), the relative window for a
+--- `relative="win"` float, or just the target tab page (inferred from the window) for others.
--- - 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: