feat(extmarks): allow preventing spellchecking with spell = false

This commit is contained in:
Thomas Vigouroux
2022-09-13 09:44:24 +02:00
committed by Lewis Russell
parent 7335a67b57
commit 7e6d785d19
8 changed files with 71 additions and 24 deletions

View File

@@ -45,7 +45,7 @@ struct Decoration {
bool hl_eol;
bool virt_lines_above;
bool conceal;
bool spell;
TriState spell;
// TODO(bfredl): style, etc
DecorPriority priority;
int col; // fixed col value, like win_col
@@ -61,7 +61,7 @@ struct Decoration {
bool ui_watched; // watched for win_extmark
};
#define DECORATION_INIT { KV_INITIAL_VALUE, KV_INITIAL_VALUE, 0, kVTEndOfLine, \
kHlModeUnknown, false, false, false, false, false, \
kHlModeUnknown, false, false, false, false, kNone, \
DECOR_PRIORITY_BASE, 0, 0, NULL, 0, 0, 0, 0, 0, false }
typedef struct {
@@ -91,7 +91,7 @@ typedef struct {
int conceal_char;
int conceal_attr;
bool spell;
TriState spell;
} DecorState;
EXTERN DecorState decor_state INIT(= { 0 });