summaryrefslogtreecommitdiff
path: root/after/plugin/colors.lua
diff options
context:
space:
mode:
authorngharo <root@ngha.ro>2023-12-29 17:46:10 -0600
committerngharo <root@ngha.ro>2023-12-29 17:46:10 -0600
commit31474998d6935d48f678988c8a7a4fac7bb2ae72 (patch)
treec71114c23c31f888c0be1ec1b2efdab0d5ce6ca5 /after/plugin/colors.lua
downloadnvim-31474998d6935d48f678988c8a7a4fac7bb2ae72.tar.xz
nvim-31474998d6935d48f678988c8a7a4fac7bb2ae72.zip
Inititial commit
Diffstat (limited to 'after/plugin/colors.lua')
-rw-r--r--after/plugin/colors.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua
new file mode 100644
index 0000000..2fc22d7
--- /dev/null
+++ b/after/plugin/colors.lua
@@ -0,0 +1,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