From a75d4659bfac04a1f5cad4166cc68f873768c653 Mon Sep 17 00:00:00 2001 From: talha Date: Sun, 19 Nov 2023 13:47:03 +0500 Subject: Adding files for upload --- after/plugin/colors.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 after/plugin/colors.lua (limited to 'after/plugin/colors.lua') 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 -- cgit v1.2.3