mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00

Now all the decoration provider code is in one place, decor_providers no longer need to be global.
27 lines
540 B
C
27 lines
540 B
C
#ifndef NVIM_DECORATION_PROVIDER_H
|
|
#define NVIM_DECORATION_PROVIDER_H
|
|
|
|
#include "nvim/buffer_defs.h"
|
|
|
|
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;
|
|
|
|
typedef kvec_withinit_t(DecorProvider *, 4) DecorProviders;
|
|
|
|
EXTERN bool provider_active INIT(= false);
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "decoration_provider.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_DECORATION_PROVIDER_H
|