diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2026-04-14 22:08:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-14 16:08:36 -0400 |
| commit | 5d3cda472c0c19dd33c1177349c08041052b88bc (patch) | |
| tree | a61288721dc51e181c12796347c85fde5f3f171e /runtime/lua/vim/_meta/api.gen.lua | |
| parent | 87b5062f9451501bf51acc551d36545a75975ed2 (diff) | |
| download | rneovim-5d3cda472c0c19dd33c1177349c08041052b88bc.tar.gz rneovim-5d3cda472c0c19dd33c1177349c08041052b88bc.tar.bz2 rneovim-5d3cda472c0c19dd33c1177349c08041052b88bc.zip | |
feat(api): use zindex to determine dimmed cursor shape #39054
Problem: The cursor shape is changed to indicate when it is behind an
unfocused floating window (since a2b92a5e). This behavior
cannot be controlled by a floating window that doesn't want
to dim the cursor.
Solution: Assign a zindex-offset of 50 to the zindex of the current
window. To not dim the cursor when creating a floating window
on top of the current window one can assign the zindex
accordingly.
Diffstat (limited to 'runtime/lua/vim/_meta/api.gen.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api.gen.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/api.gen.lua b/runtime/lua/vim/_meta/api.gen.lua index 8c134d63f0..ce5c38736c 100644 --- a/runtime/lua/vim/_meta/api.gen.lua +++ b/runtime/lua/vim/_meta/api.gen.lua @@ -1887,7 +1887,8 @@ function vim.api.nvim_open_term(buffer, opts) end --- - 250: cmdline completion popupmenu (when wildoptions+=pum) --- The default value for floats are 50. In general, values below 100 are --- recommended, unless there is a good reason to overshadow builtin ---- elements. +--- elements. The cursor is dimmed if an unfocused float above the cursor +--- exceeds the zindex of the current window by 50. --- - _cmdline_offset: (EXPERIMENTAL) When provided, anchor the `cmdline-completion` --- popupmenu to this window, with an offset in screen cell width. --- @return integer # |window-ID|, or 0 on error |