diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-03-10 15:17:06 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-03-10 22:41:20 +0000 |
commit | 1b054119ec1a7208b49feeaa496c2e1d55252989 (patch) | |
tree | 0c13d5415c3f4e51cfab0bea6194170577a80bff /src/nvim/decoration.h | |
parent | 9e9322b222566c0f92bb6df034d9b316317c81d5 (diff) | |
download | rneovim-1b054119ec1a7208b49feeaa496c2e1d55252989.tar.gz rneovim-1b054119ec1a7208b49feeaa496c2e1d55252989.tar.bz2 rneovim-1b054119ec1a7208b49feeaa496c2e1d55252989.zip |
refactor(decorations): move provider code
Move decoration provider code to a separate file.
Diffstat (limited to 'src/nvim/decoration.h')
-rw-r--r-- | src/nvim/decoration.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/decoration.h b/src/nvim/decoration.h index 2277a0ef1c..ca41a8f360 100644 --- a/src/nvim/decoration.h +++ b/src/nvim/decoration.h @@ -82,26 +82,7 @@ typedef struct { int eol_col; } DecorState; -typedef struct { - NS ns_id; - bool active; - LuaRef redraw_start; - LuaRef redraw_buf; - LuaRef redraw_win; - LuaRef redraw_line; - LuaRef redraw_end; - LuaRef hl_def; - int hl_valid; -} DecorProvider; - -EXTERN kvec_t(DecorProvider) decor_providers INIT(= KV_INITIAL_VALUE); EXTERN DecorState decor_state INIT(= { 0 }); -EXTERN bool provider_active INIT(= false); - -#define DECORATION_PROVIDER_INIT(ns_id) (DecorProvider) \ - { ns_id, false, LUA_NOREF, LUA_NOREF, \ - LUA_NOREF, LUA_NOREF, LUA_NOREF, \ - LUA_NOREF, -1 } static inline bool decor_has_sign(Decoration *decor) { |