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/highlight.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/highlight.h')
-rw-r--r-- | src/nvim/highlight.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nvim/highlight.h b/src/nvim/highlight.h index 4da7dd65bb..e5d3f3d1ca 100644 --- a/src/nvim/highlight.h +++ b/src/nvim/highlight.h @@ -1,12 +1,12 @@ -#ifndef NVIM_HIGHLIGHT_H -#define NVIM_HIGHLIGHT_H +#pragma once #include <stdbool.h> -#include "nvim/api/private/defs.h" -#include "nvim/buffer_defs.h" -#include "nvim/highlight_defs.h" -#include "nvim/option_defs.h" +#include "nvim/api/keysets_defs.h" +#include "nvim/api/private/defs.h" // IWYU pragma: keep +#include "nvim/buffer_defs.h" // IWYU pragma: keep +#include "nvim/highlight_defs.h" // IWYU pragma: export +#include "nvim/option_vars.h" #include "nvim/ui.h" #ifdef INCLUDE_GENERATED_DECLARATIONS @@ -30,4 +30,5 @@ static inline int win_hl_attr(win_T *wp, int hlf) rgb_sp = rgb_sp != -1 ? rgb_sp : 0xFF0000; \ } while (0); -#endif // NVIM_HIGHLIGHT_H +// Enums need a typecast to be used as array index. +#define HL_ATTR(n) hl_attr_active[(int)(n)] |