diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 1 | ||||
-rw-r--r-- | runtime/doc/news.txt | 3 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 1 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api_keysets.lua | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 1eebd0bb18..ec979e2ab1 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -3181,6 +3181,7 @@ nvim_open_win({buffer}, {enter}, {*config}) *nvim_open_win()* fire from calling this function. • fixed: If true when anchor is NW or SW, the float window would be kept fixed even if the window would be truncated. + • hide: If true the floating window will be hidden. Return: ~ Window handle, or 0 on error diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 05a2d35f9a..23a7e1d503 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -65,6 +65,9 @@ The following changes may require adaptations in user config or plugins. now requires an explicit range argument to be passed. If injections are required, provide an explicit range via `parser:parse({ start_row, end_row })`. +• Float window support hide and show by setting `hide` on `nvim_open_win` and + `nvim_win_set_config`. + ============================================================================== NEW FEATURES *news-features* diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 68ef54eb2f..0575c13443 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1617,6 +1617,7 @@ function vim.api.nvim_open_term(buffer, opts) end --- fire from calling this function. --- • fixed: If true when anchor is NW or SW, the float window --- would be kept fixed even if the window would be truncated. +--- • hide: If true the floating window will be hidden. --- @return integer function vim.api.nvim_open_win(buffer, enter, config) end diff --git a/runtime/lua/vim/_meta/api_keysets.lua b/runtime/lua/vim/_meta/api_keysets.lua index eaaa32d7b3..698e706171 100644 --- a/runtime/lua/vim/_meta/api_keysets.lua +++ b/runtime/lua/vim/_meta/api_keysets.lua @@ -113,6 +113,7 @@ error('Cannot require a meta file') --- @field style? string --- @field noautocmd? boolean --- @field fixed? boolean +--- @field hide? boolean --- @class vim.api.keyset.get_autocmds --- @field event? any |