diff options
author | ngharo <root@ngha.ro> | 2023-12-29 17:46:10 -0600 |
---|---|---|
committer | ngharo <root@ngha.ro> | 2023-12-29 17:46:10 -0600 |
commit | 31474998d6935d48f678988c8a7a4fac7bb2ae72 (patch) | |
tree | c71114c23c31f888c0be1ec1b2efdab0d5ce6ca5 /after/plugin/colors.lua | |
download | nvim-31474998d6935d48f678988c8a7a4fac7bb2ae72.tar.xz nvim-31474998d6935d48f678988c8a7a4fac7bb2ae72.zip |
Inititial commit
Diffstat (limited to 'after/plugin/colors.lua')
-rw-r--r-- | after/plugin/colors.lua | 23 |
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 |