diff options
author | talha <talha@talhaamir.xyz> | 2023-11-19 13:47:03 +0500 |
---|---|---|
committer | talha <talha@talhaamir.xyz> | 2023-11-19 13:47:03 +0500 |
commit | a75d4659bfac04a1f5cad4166cc68f873768c653 (patch) | |
tree | 1e3d7f0198bd16ca3270bcb3a72955f21738971a /after/plugin/colors.lua |
Adding files for upload
Diffstat (limited to 'after/plugin/colors.lua')
-rw-r--r-- | after/plugin/colors.lua | 40 |
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 |