farout.nvim/lua/tokyonight/extra/fish_themes.lua
typicode 3685c241a2
feat(extras): add fish theme format (#306)
* feat(extras): move fish colors from script to theme format

* move fish themes to fish_themes
2023-02-09 20:30:07 +01:00

48 lines
1.1 KiB
Lua

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