From a66d3f9c733f075ea72b0d30e5f29a2ec10a9a6d Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 28 Sep 2024 01:06:26 +0800 Subject: [PATCH] Use lua gruvbox extension --- .config/nvim/lua/sheldonmlee/packer.lua | 11 +---------- .config/nvim/lua/sheldonmlee/set.lua | 2 ++ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/sheldonmlee/packer.lua b/.config/nvim/lua/sheldonmlee/packer.lua index b9543c3..765167c 100644 --- a/.config/nvim/lua/sheldonmlee/packer.lua +++ b/.config/nvim/lua/sheldonmlee/packer.lua @@ -9,16 +9,7 @@ return require('packer').startup(function(use) use 'junegunn/fzf.vim' - use { - 'morhetz/gruvbox', - -- below adapted from old the old vimconfig commands: - -- set termguicolors - -- autocmd vimenter * ++nested colorscheme gruvbox - config = function() - vim.cmd('set termguicolors') - vim.cmd('autocmd vimenter * ++nested colorscheme gruvbox') - end - } + use { "ellisonleao/gruvbox.nvim" } use ('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) diff --git a/.config/nvim/lua/sheldonmlee/set.lua b/.config/nvim/lua/sheldonmlee/set.lua index 33a51cf..4ed3ce2 100644 --- a/.config/nvim/lua/sheldonmlee/set.lua +++ b/.config/nvim/lua/sheldonmlee/set.lua @@ -2,6 +2,8 @@ vim.opt.number = true vim.opt.relativenumber = true vim.cmd.syntax("enable") +vim.o.background = "dark" +vim.cmd([[colorscheme gruvbox]]) vim.opt.smartindent = true vim.opt.tabstop = 4