Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Nov 10, 2023
1 parent db537f7 commit d73fbc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/kitty-scrollback/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ M.get_highlights_as_env = function()
return env
end

---Set nvim default highlights
---Set nvim default highlights and terminal colors
M.set_highlights = function()
-- set highlight groups
local overrides = opts.highlight_overrides or {}
for name, definition in pairs(highlight_definitions()) do
vim.api.nvim_set_hl(0, name, definition)
Expand All @@ -157,8 +158,7 @@ M.set_highlights = function()
vim.api.nvim_set_hl(0, name, override)
end
end

-- set terminal colors
-- set terminal colors (see :help terminal-config)
for i = 0, 15 do
vim.b['terminal_color_' .. i] = p.kitty_colors['color' .. i]
end
Expand Down

0 comments on commit d73fbc1

Please sign in to comment.