From 4200a0f1678c06c6da4e4cfb0184c29c1174ed21 Mon Sep 17 00:00:00 2001 From: glepnir Date: Wed, 27 Sep 2023 17:23:42 +0800 Subject: feat(float): support toggle show float window --- runtime/doc/api.txt | 1 + runtime/doc/news.txt | 3 +++ 2 files changed, 4 insertions(+) (limited to 'runtime/doc') 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* -- cgit