diff options
author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-25 15:31:04 +0200 |
---|---|---|
committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-25 15:31:04 +0200 |
commit | 9fdc3215ffb07a89c053062bf1dc29f5c046db2d (patch) | |
tree | 51d79b1ec43b8b7093cd79aca1dd756dc1ba887d /spellcheck.lua | |
parent | 8cc0d0f3e1b30ae59c2b6d4a297318865e07c883 (diff) | |
download | vis-spellcheck-9fdc3215ffb07a89c053062bf1dc29f5c046db2d.tar.gz |
make the style of typo highlights configurable
Diffstat (limited to 'spellcheck.lua')
-rw-r--r-- | spellcheck.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index 9f57c26..a6879b8 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -20,6 +20,7 @@ else return nil end +spellcheck.typo_style = "fore:red" spellcheck.enabled = {} local ignored = {} @@ -27,7 +28,7 @@ local ignored = {} local last_viewport, last_typos = nil, "" vis.events.subscribe(vis.events.WIN_HIGHLIGHT, function(win) - if not spellcheck.enabled[win] or not win:style_define(42, "fore:red") then + if not spellcheck.enabled[win] or not win:style_define(42, spellcheck.typo_style) then return false end local viewport = win.viewport |