refactor(decorations): unglobal decor_providers

Now all the decoration provider code is in one place, decor_providers no
longer need to be global.
This commit is contained in:
Lewis Russell
2022-03-10 22:26:41 +00:00
parent 1b054119ec
commit 4be92ba90d
2 changed files with 7 additions and 7 deletions

View File

@@ -9,6 +9,13 @@
#include "nvim/highlight.h"
#include "nvim/lua/executor.h"
static kvec_t(DecorProvider) decor_providers = KV_INITIAL_VALUE;
#define DECORATION_PROVIDER_INIT(ns_id) (DecorProvider) \
{ ns_id, false, LUA_NOREF, LUA_NOREF, \
LUA_NOREF, LUA_NOREF, LUA_NOREF, \
LUA_NOREF, -1 }
static bool decor_provider_invoke(NS ns_id, const char *name, LuaRef ref,
Array args, bool default_true, char **perr)
{