summaryrefslogtreecommitdiff
path: root/after/plugin/colors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/colors.lua')
-rw-r--r--after/plugin/colors.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua
new file mode 100644
index 0000000..37afa2f
--- /dev/null
+++ b/after/plugin/colors.lua
@@ -0,0 +1,40 @@
+require("gruvbox").setup({
+ terminal_colors = true, -- add neovim terminal colors
+ undercurl = true,
+ underline = true,
+ bold = true,
+ italic = {
+ strings = true,
+ emphasis = true,
+ comments = true,
+ operators = false,
+ folds = true,
+ },
+ strikethrough = true,
+ invert_selection = false,
+ invert_signs = false,
+ invert_tabline = false,
+ invert_intend_guides = false,
+ inverse = true, -- invert background for search, diffs, statuslines and errors
+ contrast = "", -- can be "hard", "soft" or empty string
+ palette_overrides = {},
+ overrides = {},
+ dim_inactive = false,
+ transparent_mode = false,
+})
+
+vim.cmd("colorscheme gruvbox")
+
+function SetFocusColors(mode)
+ if mode == 'light' then
+ vim.opt.cursorline = false
+ vim.opt.colorcolumn = '0'
+ vim.cmd("colorscheme paper")
+ end
+
+ if mode == 'dark' then
+ vim.opt.cursorline = true
+ vim.opt.colorcolumn = '120'
+ vim.cmd("colorscheme atlas")
+ end
+end