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:
25
extras/fish_themes/tokyonight_day.theme
Normal file
25
extras/fish_themes/tokyonight_day.theme
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# TokyoNight
|
||||||
|
|
||||||
|
# Syntax Highlighting Colors
|
||||||
|
fish_color_normal 3760bf
|
||||||
|
fish_color_command 007197
|
||||||
|
fish_color_keyword 9854f1
|
||||||
|
fish_color_quote 8c6c3e
|
||||||
|
fish_color_redirection 3760bf
|
||||||
|
fish_color_end b15c00
|
||||||
|
fish_color_error f52a65
|
||||||
|
fish_color_param 7847bd
|
||||||
|
fish_color_comment 848cb5
|
||||||
|
fish_color_selection --background=99a7df
|
||||||
|
fish_color_search_match --background=99a7df
|
||||||
|
fish_color_operator 587539
|
||||||
|
fish_color_escape 9854f1
|
||||||
|
fish_color_autosuggestion 848cb5
|
||||||
|
|
||||||
|
# Completion Pager Colors
|
||||||
|
fish_pager_color_progress 848cb5
|
||||||
|
fish_pager_color_prefix 007197
|
||||||
|
fish_pager_color_completion 3760bf
|
||||||
|
fish_pager_color_description 848cb5
|
||||||
|
fish_pager_color_selected_background --background=99a7df
|
||||||
|
|
||||||
25
extras/fish_themes/tokyonight_moon.theme
Normal file
25
extras/fish_themes/tokyonight_moon.theme
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# TokyoNight
|
||||||
|
|
||||||
|
# Syntax Highlighting Colors
|
||||||
|
fish_color_normal c8d3f5
|
||||||
|
fish_color_command 86e1fc
|
||||||
|
fish_color_keyword c099ff
|
||||||
|
fish_color_quote ffc777
|
||||||
|
fish_color_redirection c8d3f5
|
||||||
|
fish_color_end ff966c
|
||||||
|
fish_color_error ff757f
|
||||||
|
fish_color_param fca7ea
|
||||||
|
fish_color_comment 636da6
|
||||||
|
fish_color_selection --background=3654a7
|
||||||
|
fish_color_search_match --background=3654a7
|
||||||
|
fish_color_operator c3e88d
|
||||||
|
fish_color_escape c099ff
|
||||||
|
fish_color_autosuggestion 636da6
|
||||||
|
|
||||||
|
# Completion Pager Colors
|
||||||
|
fish_pager_color_progress 636da6
|
||||||
|
fish_pager_color_prefix 86e1fc
|
||||||
|
fish_pager_color_completion c8d3f5
|
||||||
|
fish_pager_color_description 636da6
|
||||||
|
fish_pager_color_selected_background --background=3654a7
|
||||||
|
|
||||||
25
extras/fish_themes/tokyonight_night.theme
Normal file
25
extras/fish_themes/tokyonight_night.theme
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# TokyoNight
|
||||||
|
|
||||||
|
# Syntax Highlighting Colors
|
||||||
|
fish_color_normal c0caf5
|
||||||
|
fish_color_command 7dcfff
|
||||||
|
fish_color_keyword bb9af7
|
||||||
|
fish_color_quote e0af68
|
||||||
|
fish_color_redirection c0caf5
|
||||||
|
fish_color_end ff9e64
|
||||||
|
fish_color_error f7768e
|
||||||
|
fish_color_param 9d7cd8
|
||||||
|
fish_color_comment 565f89
|
||||||
|
fish_color_selection --background=33467c
|
||||||
|
fish_color_search_match --background=33467c
|
||||||
|
fish_color_operator 9ece6a
|
||||||
|
fish_color_escape bb9af7
|
||||||
|
fish_color_autosuggestion 565f89
|
||||||
|
|
||||||
|
# Completion Pager Colors
|
||||||
|
fish_pager_color_progress 565f89
|
||||||
|
fish_pager_color_prefix 7dcfff
|
||||||
|
fish_pager_color_completion c0caf5
|
||||||
|
fish_pager_color_description 565f89
|
||||||
|
fish_pager_color_selected_background --background=33467c
|
||||||
|
|
||||||
25
extras/fish_themes/tokyonight_storm.theme
Normal file
25
extras/fish_themes/tokyonight_storm.theme
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# TokyoNight
|
||||||
|
|
||||||
|
# Syntax Highlighting Colors
|
||||||
|
fish_color_normal c0caf5
|
||||||
|
fish_color_command 7dcfff
|
||||||
|
fish_color_keyword bb9af7
|
||||||
|
fish_color_quote e0af68
|
||||||
|
fish_color_redirection c0caf5
|
||||||
|
fish_color_end ff9e64
|
||||||
|
fish_color_error f7768e
|
||||||
|
fish_color_param 9d7cd8
|
||||||
|
fish_color_comment 565f89
|
||||||
|
fish_color_selection --background=364a82
|
||||||
|
fish_color_search_match --background=364a82
|
||||||
|
fish_color_operator 9ece6a
|
||||||
|
fish_color_escape bb9af7
|
||||||
|
fish_color_autosuggestion 565f89
|
||||||
|
|
||||||
|
# Completion Pager Colors
|
||||||
|
fish_pager_color_progress 565f89
|
||||||
|
fish_pager_color_prefix 7dcfff
|
||||||
|
fish_pager_color_completion c0caf5
|
||||||
|
fish_pager_color_description 565f89
|
||||||
|
fish_pager_color_selected_background --background=364a82
|
||||||
|
|
||||||
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 = {
|
local extras = {
|
||||||
kitty = "conf",
|
kitty = "conf",
|
||||||
fish = "fish",
|
fish = "fish",
|
||||||
|
fish_themes = "theme",
|
||||||
alacritty = "yml",
|
alacritty = "yml",
|
||||||
wezterm = "toml",
|
wezterm = "toml",
|
||||||
tmux = "tmux",
|
tmux = "tmux",
|
||||||
|
|||||||
Reference in New Issue
Block a user