diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-01-18 15:05:04 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-02-23 21:29:01 +0100 |
commit | 44b2cef83af798429f675b3f244d52c59a4a9047 (patch) | |
tree | 1e1fa6e7bbb08abf9db294b7f09b5f7b754a6213 /src/nvim/buffer_defs.h | |
parent | 18605d678517ca7347a8fae234e5f39f79fb6904 (diff) | |
download | rneovim-44b2cef83af798429f675b3f244d52c59a4a9047.tar.gz rneovim-44b2cef83af798429f675b3f244d52c59a4a9047.tar.bz2 rneovim-44b2cef83af798429f675b3f244d52c59a4a9047.zip |
bufhl: new mechanism for plugins to add highlights to a buffer
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index bdea609820..5666e3fdb6 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -28,6 +28,8 @@ typedef struct file_buffer buf_T; // Forward declaration #include "nvim/profile.h" // for String #include "nvim/api/private/defs.h" +// for Map(K, V) +#include "nvim/map.h" #define MODIFIABLE(buf) (!buf->terminal && buf->b_p_ma) @@ -101,6 +103,11 @@ typedef int scid_T; /* script ID */ // for signlist_T #include "nvim/sign_defs.h" +// for bufhl_*_T +#include "nvim/bufhl_defs.h" + +typedef Map(linenr_T, bufhl_vec_T) bufhl_info_T; + // for FileID #include "nvim/os/fs_defs.h" @@ -754,6 +761,8 @@ struct file_buffer { dict_T *additional_data; // Additional data from shada file if any. int b_mapped_ctrl_c; // modes where CTRL-C is mapped + + bufhl_info_T *b_bufhl_info; // buffer stored highlights }; /* |