refactor(IWYU): move decor provider types to decoration_defs.h (#26692)

This commit is contained in:
zeertzjq
2023-12-21 16:50:05 +08:00
committed by GitHub
parent 8c611f53fe
commit 8533adb484
69 changed files with 110 additions and 142 deletions

View File

@@ -1,5 +1,6 @@
#include <assert.h>
#include <lauxlib.h>
#include <stdint.h>
#include <string.h>
#include "klib/kvec.h"
@@ -8,6 +9,7 @@
#include "nvim/api/private/helpers.h"
#include "nvim/buffer_defs.h"
#include "nvim/decoration.h"
#include "nvim/decoration_defs.h"
#include "nvim/decoration_provider.h"
#include "nvim/globals.h"
#include "nvim/highlight.h"
@@ -16,6 +18,12 @@
#include "nvim/message.h"
#include "nvim/pos_defs.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "decoration_provider.c.generated.h"
#endif
enum { DP_MAX_ERROR = 3, };
static kvec_t(DecorProvider) decor_providers = KV_INITIAL_VALUE;
#define DECORATION_PROVIDER_INIT(ns_id) (DecorProvider) \