---@param palette nor.GeneratorPalette ---@return string return function(palette) local colors = { fg = palette.fg_alt, emphasis = palette.fg, selection = palette.bg_alt, comment = palette.fg_dim, quote = palette.red.fg, red = palette.red.mid, orange = palette.orange.fg, blue = palette.blue.fg, } -- remove initial # from colors for k, v in pairs(colors) do colors[k] = v:sub(2) end colors.variant = palette.variant return require("nor.extras.utils").template( [=[ # nor.nvim ${variant} for fish # auto generated with https://tangled.org/ronshavit.com/nor.nvim/blob/master/lua/nor/extras/fish.lua # syntax set -g fish_color_normal ${fg} set -g fish_color_command ${blue} set -g fish_color_keyword ${red} set -g fish_color_quote ${quote} set -g fish_color_redirection ${fg} set -g fish_color_end ${comment} set -g fish_color_option ${orange} set -g fish_color_error ${red} set -g fish_color_param ${emphasis} set -g fish_color_comment ${comment} set -g fish_color_selection --background=${selection} set -g fish_color_search_match --background=${selection} set -g fish_color_operator ${fg} set -g fish_color_escape ${red} set -g fish_color_autosuggestion ${comment} # pager set -g fish_pager_color_progress ${comment} set -g fish_pager_color_prefix ${blue} set -g fish_pager_color_completion ${fg} set -g fish_pager_color_description ${comment} set -g fish_pager_color_selected_background --background=${selection} ]=], colors ) end