1
0

use colors from theme palette

This commit is contained in:
2026-04-13 21:30:51 +02:00
parent 7cc34cbda4
commit 7eac65fadc

View File

@@ -25,11 +25,8 @@ end, { desc = "Alternate between light and dark mode" })
-- Insert-mode cursor: extmark overlay for full fg+bg control (terminal ignores fg on cursor hl groups)
local function set_icursor_hl()
if vim.o.background == "light" then
vim.api.nvim_set_hl(0, "iCursorChar", { fg = "#fffaf3", bg = "#b4637a" }) -- dawn: surface / love
else
vim.api.nvim_set_hl(0, "iCursorChar", { fg = "#1f1d2e", bg = "#eb6f92" }) -- main: surface / love
end
local palette = require("rose-pine.palette")
vim.api.nvim_set_hl(0, "iCursorChar", { fg = palette.surface, bg = palette.love })
end
set_icursor_hl()