From 6f537f300b0b4d7e4a729e28cce7be9241e829a3 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Mon, 18 Sep 2023 09:05:07 -0600 Subject: lua: update default themes This also involves modifying the style definitions so that they include sub tags as well. For example command.section in latex should be mapped to COMMAND_SECTION. --- lua/vis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/vis.lua') diff --git a/lua/vis.lua b/lua/vis.lua index 139f6dc..2432c72 100644 --- a/lua/vis.lua +++ b/lua/vis.lua @@ -280,7 +280,7 @@ vis.types.window.set_syntax = function(win, syntax) if not lexer then return false end for id, token_name in ipairs(lexer._TAGS) do - local style = lexers['STYLE_' .. token_name:upper()] or '' + local style = lexers['STYLE_' .. token_name:upper():gsub("%.", "_")] or '' if type(style) == 'table' then local s = '' if style.bold then -- cgit v1.2.3