neovim: Tweak gruvbox theme

This commit is contained in:
Peter Cai 2022-08-07 20:41:07 -04:00
parent 82abed7e25
commit b128903bfb
2 changed files with 13 additions and 6 deletions

View File

@ -1,12 +1,13 @@
" Packer plugins
lua require('plugins')
" Gruvbox Theme
" Gruvbox Theme (colorscheme applied from plugins.lua)
if has('termguicolors')
set termguicolors
endif
" For dark version.
set background=dark
" We need to apply this here too to make sure the startup components work
colorscheme gruvbox
" Miscellaneous boilerplate

View File

@ -10,11 +10,17 @@ return require('packer').startup(function(use)
-- Gruvbox theme
use {
"ellisonleao/gruvbox.nvim",
config = function() require("gruvbox").setup({
bold = false,
italic = true,
strikethrough = true,
}) end,
config = function()
require("gruvbox").setup({
bold = false,
italic = true,
strikethrough = true,
overrides = {
Directory = { link = "GruvboxFg2" },
},
})
vim.cmd("colorscheme gruvbox")
end,
}
-- A way saner buffer closing implementation