Skip to content
Snippets Groups Projects
colors.lua 1.69 KiB
Newer Older
iliya's avatar
iliya committed
require('rose-pine').setup({
	variant = "moon",   -- auto, main, moon, or dawn
	dark_variant = "main", -- main, moon, or dawn
	dim_inactive_windows = false,
	extend_background_behind_borders = false,

	styles = {
		bold = true,
		italic = true,
		transparency = false,
	},

iliya's avatar
iliya committed
	groups = {
		border = "muted",
		link = "iris",
		panel = "surface",

		error = "love",
		hint = "iris",
		info = "foam",
		warn = "gold",

		git_add = "foam",
		git_change = "rose",
		git_delete = "love",
		git_dirty = "rose",
		git_ignore = "muted",
		git_merge = "iris",
		git_rename = "pine",
		git_stage = "iris",
		git_text = "rose",
		git_untracked = "subtle",
iliya's avatar
iliya committed
		headings = {
			h1 = "iris",
			h2 = "foam",
			h3 = "rose",
			h4 = "gold",
			h5 = "pine",
			h6 = "foam",
		},
		-- Alternatively, set all headings at once.
		-- headings = "subtle",
iliya's avatar
iliya committed
	highlight_groups = {
		-- Comment = { fg = "foam" },
		-- VertSplit = { fg = "muted", bg = "muted" },
iliya's avatar
iliya committed
		Normal = { bg = 'none' },
		NormalFloat = { bg = 'none' },
		ColorColumn = { bg = 'rose' },

		-- Blend colours against the "base" background
		CursorLine = { bg = 'foam', blend = 10 },
		StatusLine = { fg = 'love', bg = 'love', blend = 10 },

		-- By default each group adds to the existing config.
		-- If you only want to set what is written in this config exactly,
		-- you can set the inherit option:
		IncSearch = { bg = 'rose', inherit = false },
	},

	before_highlight = function(group, highlight, palette)
		-- Disable all undercurls
		-- if highlight.undercurl then
		--     highlight.undercurl = false
		-- end
		--
		-- Change palette colour
		-- if highlight.fg == palette.pine then
		--     highlight.fg = palette.foam
		-- end
	end,
iliya's avatar
iliya committed
})
iliya's avatar
iliya committed
vim.cmd('colorscheme rose-pine')