decor: sketch new decorations API

return decorations back

lol no nvim_buf_get_virtual_text

share decorations that are hl only to avoid alloc avalanche
This commit is contained in:
Björn Linse
2020-01-21 15:26:55 +01:00
committed by Thomas Vigouroux
parent d3302573ba
commit 49f5b57587
8 changed files with 248 additions and 169 deletions

View File

@@ -13,9 +13,12 @@ typedef struct
uint64_t mark_id;
int row;
colnr_T col;
int end_row;
colnr_T end_col;
Decoration *decor;
} ExtmarkInfo;
typedef kvec_t(ExtmarkInfo) ExtmarkArray;
typedef kvec_t(ExtmarkInfo) ExtmarkInfoArray;
// delete the columns between mincol and endcol