From 992804cb27993d5de8e6830a8ab9268045ce6892 Mon Sep 17 00:00:00 2001 From: Laurence de Bruxelles Date: Fri, 19 Sep 2025 10:19:10 +0300 Subject: Use STYLE_WHITESPACE for spaces, newlines, and tabs Allow theming the replacement characters shown for showspaces, showtabs, and/or shownewlines. --- lua/vis.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') 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 -- cgit v1.2.3