---@param palette nor.GeneratorPalette ---@return string return function(palette) local lines = {} for i, color in ipairs(palette.term) do lines[i] = "palette = " .. (i - 1) .. "=" .. color end return require("nor.extras.utils").template( [=[ # nor.nvim ${variant} for ghostty # auto generated with https://tangled.org/ronshavit.com/nor.nvim/blob/master/lua/nor/extras/ghostty.lua background = ${bg} foreground = ${fg_alt} selection-background = ${bg_alt} selection-foreground = ${fg} cursor-color = ${fg} cursor-text = ${bg} ${term} # vim:ft=ghostty ]=], vim.tbl_extend("force", palette, { term = table.concat(lines, "\n") }) ) end