diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-04-15 20:57:23 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-05-01 11:48:04 +0200 |
commit | 0865f1238f9d063b70d7e2391f671f5f1125821a (patch) | |
tree | 16a901e9f6d048eabac4aaee186699044b940b63 /src/nvim/decoration.h | |
parent | 59eae3b38fc98ba8c14e681b6d231e9821a11d52 (diff) | |
download | rneovim-0865f1238f9d063b70d7e2391f671f5f1125821a.tar.gz rneovim-0865f1238f9d063b70d7e2391f671f5f1125821a.tar.bz2 rneovim-0865f1238f9d063b70d7e2391f671f5f1125821a.zip |
decorations: right_align and win_col
Diffstat (limited to 'src/nvim/decoration.h')
-rw-r--r-- | src/nvim/decoration.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/decoration.h b/src/nvim/decoration.h index 08d69060f0..4cebc0b731 100644 --- a/src/nvim/decoration.h +++ b/src/nvim/decoration.h @@ -21,6 +21,8 @@ typedef uint16_t DecorPriority; typedef enum { kVTEndOfLine, kVTOverlay, + kVTWinCol, + kVTRightAlign, } VirtTextPos; typedef enum { @@ -41,9 +43,10 @@ struct Decoration // TODO(bfredl): style, signs, etc DecorPriority priority; bool shared; // shared decoration, don't free + int col; // fixed col value, like win_col }; #define DECORATION_INIT { 0, KV_INITIAL_VALUE, kVTEndOfLine, false, \ - kHlModeUnknown, false, DECOR_PRIORITY_BASE, false } + kHlModeUnknown, false, DECOR_PRIORITY_BASE, false, 0 } typedef struct { int start_row; @@ -53,7 +56,7 @@ typedef struct { Decoration decor; int attr_id; // cached lookup of decor.hl_id bool virt_text_owned; - int virt_col; + int win_col; } DecorRange; typedef struct { |