Skip to content

Commit

Permalink
feat(sublime): highlights for info
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 24, 2024
1 parent fc9747c commit 371220d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lua/tokyonight/extra/sublime.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local M = {}
function M.generate(colors)
colors.error_bg = util.darken(colors.error, 0.1)
colors.warning_bg = util.darken(colors.warning, 0.1)
colors.info_bg = util.darken(colors.info, 0.1)
local sublime = util.template(M.template, colors)
return sublime
end
Expand Down Expand Up @@ -169,6 +170,19 @@ M.template = [[
<string>#9aa5ce</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Info</string>
<key>scope</key>
<string>markup.info</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>${info}</string>
<key>background</key>
<string>${info_bg}</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Warning</string>
Expand All @@ -178,8 +192,6 @@ M.template = [[
<dict>
<key>foreground</key>
<string>${warning}</string>
<key>fontStyle</key>
<string>bold</string>
<key>background</key>
<string>${warning_bg}</string>
</dict>
Expand Down

0 comments on commit 371220d

Please sign in to comment.