Skip to content

Commit

Permalink
feat(platforms): move all platform files to generation system
Browse files Browse the repository at this point in the history
  • Loading branch information
DOD-101 committed Jan 18, 2025
1 parent fefc3cc commit 089a888
Show file tree
Hide file tree
Showing 21 changed files with 1,213 additions and 601 deletions.
43 changes: 43 additions & 0 deletions lua/nordic/platforms/fish_themes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
local U = require('nordic.utils')

local M = {}

function M.generate(colors)
local fishColors = U.removeHash(colors)

local foot = U.template(
[[
# Name: Nordic
# Auother: XXiaoA
# https://fishshell.com/docs/current/interactive.html#syntax-highlighting-variables
# Syntax Highlighting Colors
fish_color_normal ${blue1}
fish_color_command ${yellow.base}
fish_color_keyword ${magenta.base}
fish_color_quote ${green.base}
fish_color_redirection ${white1}
fish_color_end ${white0_normal}
fish_color_error ${error}
fish_color_param ${blue2}
fish_color_comment ${gray4}
fish_color_selection --background=${gray2}
fish_color_search_match --background=${black1}
fish_color_operator ${orange.base}
fish_color_escape ${blue1}
fish_color_autosuggestion ${gray5}
# Completion Pager Colors
fish_pager_color_progress ${blue1}
fish_pager_color_prefix ${yellow.base}
fish_pager_color_completion ${white1}
fish_pager_color_description ${blue1}
fish_pager_color_selected_background --background=${gray2}
]],
fishColors
)

return foot
end

return M
36 changes: 25 additions & 11 deletions lua/nordic/platforms/foot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,46 @@ local U = require('nordic.utils')

local M = {}

--- @param colors ColorScheme
function M.generate(colors)
local footColors = U.removeHash(colors)

local foot = U.template(
[[
[colors]
foreground=${white1}
foreground=${fg}
background=${bg}
regular0=${gray2}
# black
regular0=${black0}
bright0=${gray2}
# red
regular1=${red.base}
regular2=${green.base}
regular3=${yellow.base}
regular4=${blue1}
regular5=${magenta.base}
regular6=${cyan.base}
regular7=${white1}
bright0=${gray3}
bright1=${red.bright}
# green
regular2=${green.base}
bright2=${green.bright}
# yellow
regular3=${yellow.base}
bright3=${yellow.bright}
# blue
regular4=${blue0}
bright4=${blue2}
# magenta
regular5=${magenta.base}
bright5=${magenta.bright}
# cyan
regular6=${cyan.base}
bright6=${cyan.bright}
bright7=${white2}
# white
regular7=${white0}
bright7=${white1}
]],
footColors
)
Expand Down
Loading

0 comments on commit 089a888

Please sign in to comment.