Skip to content

Commit

Permalink
fix: rename colors on utils
Browse files Browse the repository at this point in the history
  • Loading branch information
pauchiner committed Feb 2, 2024
1 parent 5fdb07f commit 436281c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lua/pastelnight/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ end
function M.template(str, table)
return (
str:gsub("($%b{})", function(w)
---@diagnostic disable-next-line: deprecated
return vim.tbl_get(table, unpack(vim.split(w:sub(3, -2), ".", { plain = true }))) or w
end)
)
Expand All @@ -126,10 +127,10 @@ end
function M.terminal(colors)
-- dark
vim.g.terminal_color_0 = colors.black
vim.g.terminal_color_8 = colors.terminal_black
vim.g.terminal_color_8 = colors.black

-- light
vim.g.terminal_color_7 = colors.fg_dark
vim.g.terminal_color_7 = colors.base100
vim.g.terminal_color_15 = colors.fg

-- colors
Expand All @@ -145,11 +146,11 @@ function M.terminal(colors)
vim.g.terminal_color_4 = colors.blue
vim.g.terminal_color_12 = colors.blue

vim.g.terminal_color_5 = colors.magenta
vim.g.terminal_color_13 = colors.magenta
vim.g.terminal_color_5 = colors.pink
vim.g.terminal_color_13 = colors.pink

vim.g.terminal_color_6 = colors.cyan
vim.g.terminal_color_14 = colors.cyan
vim.g.terminal_color_6 = colors.sky
vim.g.terminal_color_14 = colors.sky
end

---@param colors ColorScheme
Expand Down

0 comments on commit 436281c

Please sign in to comment.