diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2023-09-18 09:05:07 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-03-27 06:04:21 -0600 |
| commit | 6f537f300b0b4d7e4a729e28cce7be9241e829a3 (patch) | |
| tree | 6fb9efdfb78c67d15d90425f91d4e54cf7d983e4 /lua/vis.lua | |
| parent | 1bb3a5b8a25eeb2f2f9e0d0de97e503d001ddcab (diff) | |
| download | vis-6f537f300b0b4d7e4a729e28cce7be9241e829a3.tar.gz vis-6f537f300b0b4d7e4a729e28cce7be9241e829a3.tar.xz | |
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.
Diffstat (limited to 'lua/vis.lua')
| -rw-r--r-- | lua/vis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
