aboutsummaryrefslogtreecommitdiff
path: root/lua/vis.lua
diff options
context:
space:
mode:
authorLaurence de Bruxelles <lfdebrux@gmail.com>2025-09-19 10:19:10 +0300
committerRandy Palamar <randy@rnpnr.xyz>2025-12-14 06:09:11 -0700
commit992804cb27993d5de8e6830a8ab9268045ce6892 (patch)
treeb86c44c3154370d587c46050560516fcb10d9936 /lua/vis.lua
parent6c519e91c684838bebcc6d49d894af956f6815b4 (diff)
downloadvis-992804cb27993d5de8e6830a8ab9268045ce6892.tar.gz
vis-992804cb27993d5de8e6830a8ab9268045ce6892.tar.xz
Use STYLE_WHITESPACE for spaces, newlines, and tabs
Allow theming the replacement characters shown for showspaces, showtabs, and/or shownewlines.
Diffstat (limited to 'lua/vis.lua')
-rw-r--r--lua/vis.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/vis.lua b/lua/vis.lua
index 9ac41b0..42c536b 100644
--- a/lua/vis.lua
+++ b/lua/vis.lua
@@ -272,6 +272,7 @@ vis.types.window.set_syntax = function(win, syntax)
win:style_define(win.STYLE_SEPARATOR, lexers.STYLE_SEPARATOR or '')
win:style_define(win.STYLE_INFO, lexers.STYLE_INFO or '')
win:style_define(win.STYLE_EOF, lexers.STYLE_EOF or '')
+ win:style_define(win.STYLE_WHITESPACE, lexers.STYLE_WHITESPACE or '')
if syntax == nil or syntax == 'off' then
win.syntax = nil