summaryrefslogtreecommitdiff
path: root/after/plugin/colors.lua
blob: 2fc22d7b09f1a53ac95e2ccb8fd8bdd9f8b52ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--
-- COLORS --
--

vim.opt.termguicolors = true

local rp = require('rose-pine')
rp.setup({
	--- @usage 'auto'|'main'|'moon'|'dawn'
	variant = 'auto',
	disable_italics = true,
})

function SetColor(color)
    color = color or "rose-pine" -- have a default value
    vim.cmd.colorscheme(color)

    vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
    vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
    vim.api.nvim_set_hl(0, "ColorColumn", { bg = "#330000" })
end

SetColor() -- run at startup