From 09552fb63356a71d1d2b087019e94b1d68b1d31c Mon Sep 17 00:00:00 2001 From: Wellinton Aracena Date: Sun, 3 Mar 2024 11:00:51 -0500 Subject: [PATCH] added gruvbox theme --- init.lua | 4 ++-- lua/custom/plugins/colorscheme.lua | 35 ++++++++++++++++++++++++++++++ lua/custom/plugins/init.lua | 5 ++++- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 lua/custom/plugins/colorscheme.lua diff --git a/init.lua b/init.lua index 292ec077..3bd24f7a 100644 --- a/init.lua +++ b/init.lua @@ -807,14 +807,14 @@ require('lazy').setup { -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.indent_line', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, } -- The line beneath this is called `modeline`. See `:help modeline` diff --git a/lua/custom/plugins/colorscheme.lua b/lua/custom/plugins/colorscheme.lua new file mode 100644 index 00000000..44ea56ce --- /dev/null +++ b/lua/custom/plugins/colorscheme.lua @@ -0,0 +1,35 @@ +return { + { + 'ellisonleao/gruvbox.nvim', + priority = 1000, + config = true, + opts = function() + -- Default options: + 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' + end, + }, +} diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..4451a4fa 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,7 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +-- +local M = {} + +return M