feat(extras): add fish theme format (#306)
* feat(extras): move fish colors from script to theme format * move fish themes to fish_themes
This commit is contained in:
47
lua/tokyonight/extra/fish_themes.lua
Normal file
47
lua/tokyonight/extra/fish_themes.lua
Normal file
@@ -0,0 +1,47 @@
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
local M = {}
|
||||
|
||||
--- @param colors ColorScheme
|
||||
function M.generate(colors)
|
||||
local fishColors = {}
|
||||
for k, v in pairs(colors) do
|
||||
if type(v) == "string" then
|
||||
fishColors[k] = v:gsub("^#", "")
|
||||
end
|
||||
end
|
||||
|
||||
local fish = util.template(
|
||||
[[
|
||||
# TokyoNight
|
||||
|
||||
# Syntax Highlighting Colors
|
||||
fish_color_normal ${fg}
|
||||
fish_color_command ${cyan}
|
||||
fish_color_keyword ${magenta}
|
||||
fish_color_quote ${yellow}
|
||||
fish_color_redirection ${fg}
|
||||
fish_color_end ${orange}
|
||||
fish_color_error ${red}
|
||||
fish_color_param ${purple}
|
||||
fish_color_comment ${comment}
|
||||
fish_color_selection --background=${bg_visual}
|
||||
fish_color_search_match --background=${bg_visual}
|
||||
fish_color_operator ${green}
|
||||
fish_color_escape ${magenta}
|
||||
fish_color_autosuggestion ${comment}
|
||||
|
||||
# Completion Pager Colors
|
||||
fish_pager_color_progress ${comment}
|
||||
fish_pager_color_prefix ${cyan}
|
||||
fish_pager_color_completion ${fg}
|
||||
fish_pager_color_description ${comment}
|
||||
fish_pager_color_selected_background --background=${bg_visual}
|
||||
]],
|
||||
fishColors
|
||||
)
|
||||
|
||||
return fish
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -16,6 +16,7 @@ function M.setup()
|
||||
local extras = {
|
||||
kitty = "conf",
|
||||
fish = "fish",
|
||||
fish_themes = "theme",
|
||||
alacritty = "yml",
|
||||
wezterm = "toml",
|
||||
tmux = "tmux",
|
||||
|
||||
Reference in New Issue
Block a user