diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 21:52:58 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 21:52:58 +0000 |
commit | 931bffbda3668ddc609fc1da8f9eb576b170aa52 (patch) | |
tree | d8c1843a95da5ea0bb4acc09f7e37843d9995c86 /src/nvim/decoration_provider.h | |
parent | 142d9041391780ac15b89886a54015fdc5c73995 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-userreg.tar.gz rneovim-userreg.tar.bz2 rneovim-userreg.zip |
Merge remote-tracking branch 'upstream/master' into userreguserreg
Diffstat (limited to 'src/nvim/decoration_provider.h')
-rw-r--r-- | src/nvim/decoration_provider.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/nvim/decoration_provider.h b/src/nvim/decoration_provider.h index b91ddabdfd..e0dd67a6f7 100644 --- a/src/nvim/decoration_provider.h +++ b/src/nvim/decoration_provider.h @@ -1,12 +1,14 @@ -#ifndef NVIM_DECORATION_PROVIDER_H -#define NVIM_DECORATION_PROVIDER_H +#pragma once #include <stdbool.h> +#include <stdint.h> #include "klib/kvec.h" -#include "nvim/buffer_defs.h" -#include "nvim/macros.h" -#include "nvim/types.h" +#include "nvim/buffer_defs.h" // IWYU pragma: keep +#include "nvim/macros_defs.h" +#include "nvim/types_defs.h" + +#define DP_MAX_ERROR 3 typedef struct { NS ns_id; @@ -20,14 +22,14 @@ typedef struct { LuaRef spell_nav; int hl_valid; bool hl_cached; + + uint8_t error_count; } DecorProvider; typedef kvec_withinit_t(DecorProvider *, 4) DecorProviders; -EXTERN bool provider_active INIT(= false); +EXTERN bool provider_active INIT( = false); #ifdef INCLUDE_GENERATED_DECLARATIONS # include "decoration_provider.h.generated.h" #endif - -#endif // NVIM_DECORATION_PROVIDER_H |