summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_meta/api.lua
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2026-03-03 12:17:20 +0000
committerGitHub <noreply@github.com>2026-03-03 12:17:20 +0000
commit1901832f26fa566b18360487527cdfda4482496d (patch)
treeb96c2285d1e11e789ef3fa6ff5a6d76e719533a1 /runtime/lua/vim/_meta/api.lua
parent84d84e9b5befede3cdd2c14b5c11be19b442df0c (diff)
fix(api): return "style" in nvim_win_get_config() #38122
Problem: nvim_win_get_config() does not return a window's "style". Solution: always include it, and document `style=""`. Always included so it can be used reciprocally with nvim_open_win() or nvim_win_set_config(). (otherwise the config of a window with kWinStyleUnused will not unset the kWinStyleMinimal style of another window if passed to nvim_win_set_config, for example)
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
-rw-r--r--runtime/lua/vim/_meta/api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua
index 6bc5328fd0..b9cf341403 100644
--- a/runtime/lua/vim/_meta/api.lua
+++ b/runtime/lua/vim/_meta/api.lua
@@ -1827,8 +1827,8 @@ function vim.api.nvim_open_term(buffer, opts) end
--- - "win" Window given by the `win` field, or current window.
--- - row: Row position in units of "screen cell height", may be fractional.
--- - split: Split direction: "left", "right", "above", "below".
---- - style: (optional) Configure the appearance of the window. Currently
---- only supports one value:
+--- - style: (optional) Configure the appearance of the window:
+--- - "" No special style.
--- - "minimal" Nvim will display the window with many UI options
--- disabled. This is useful when displaying a temporary
--- float where the text should not be edited. Disables