diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-10 11:42:46 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-05-02 15:57:06 +0200 |
commit | 037ea6e786b5d05f4a8965e4c2ba6aa60ec7c01a (patch) | |
tree | d59f33ff739409f1a280d2c3f9b8140a814c9e38 /runtime/lua/vim/_meta/api_keysets.lua | |
parent | 7b14eb543d43344e2498335dc93a68d200469516 (diff) | |
download | rneovim-037ea6e786b5d05f4a8965e4c2ba6aa60ec7c01a.tar.gz rneovim-037ea6e786b5d05f4a8965e4c2ba6aa60ec7c01a.tar.bz2 rneovim-037ea6e786b5d05f4a8965e4c2ba6aa60ec7c01a.zip |
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'.
Diffstat (limited to 'runtime/lua/vim/_meta/api_keysets.lua')
-rw-r--r-- | runtime/lua/vim/_meta/api_keysets.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api_keysets.lua b/runtime/lua/vim/_meta/api_keysets.lua index 9f9ade3e76..f7cd92a3b2 100644 --- a/runtime/lua/vim/_meta/api_keysets.lua +++ b/runtime/lua/vim/_meta/api_keysets.lua @@ -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 |