mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
feat(api): add nvim__redraw for more granular redrawing
Experimental and subject to future changes. Add a way to redraw certain elements that are not redrawn while Nvim is waiting for input, or currently have no API to do so. This API covers all that can be done with the :redraw* commands, in addition to the following new features: - Immediately move the cursor to a (non-current) window. - Target a specific window or buffer to mark for redraw. - Mark a buffer range for redraw (replaces nvim__buf_redraw_range()). - Redraw the 'statuscolumn'.
This commit is contained in:
12
runtime/lua/vim/_meta/api_keysets.lua
generated
12
runtime/lua/vim/_meta/api_keysets.lua
generated
@@ -207,6 +207,18 @@ error('Cannot require a meta file')
|
||||
--- @field buf? integer
|
||||
--- @field filetype? string
|
||||
|
||||
--- @class vim.api.keyset.redraw
|
||||
--- @field flush? boolean
|
||||
--- @field cursor? boolean
|
||||
--- @field valid? boolean
|
||||
--- @field statuscolumn? boolean
|
||||
--- @field statusline? boolean
|
||||
--- @field tabline? boolean
|
||||
--- @field winbar? boolean
|
||||
--- @field range? any[]
|
||||
--- @field win? integer
|
||||
--- @field buf? integer
|
||||
|
||||
--- @class vim.api.keyset.runtime
|
||||
--- @field is_lua? boolean
|
||||
--- @field do_source? boolean
|
||||
|
Reference in New Issue
Block a user