use colors from theme palette
This commit is contained in:
@@ -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)
|
-- Insert-mode cursor: extmark overlay for full fg+bg control (terminal ignores fg on cursor hl groups)
|
||||||
local function set_icursor_hl()
|
local function set_icursor_hl()
|
||||||
if vim.o.background == "light" then
|
local palette = require("rose-pine.palette")
|
||||||
vim.api.nvim_set_hl(0, "iCursorChar", { fg = "#fffaf3", bg = "#b4637a" }) -- dawn: surface / love
|
vim.api.nvim_set_hl(0, "iCursorChar", { fg = palette.surface, bg = palette.love })
|
||||||
else
|
|
||||||
vim.api.nvim_set_hl(0, "iCursorChar", { fg = "#1f1d2e", bg = "#eb6f92" }) -- main: surface / love
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
set_icursor_hl()
|
set_icursor_hl()
|
||||||
|
|||||||
Reference in New Issue
Block a user