From 1e322dde5e6975f29dcfbad0f0e785582e1160ad Mon Sep 17 00:00:00 2001 From: Mike Kot Date: Sat, 18 Mar 2023 15:01:13 +0300 Subject: [PATCH] Packer config for neovim users --- Installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Installation.md b/Installation.md index 216e1aa..03a6719 100644 --- a/Installation.md +++ b/Installation.md @@ -22,6 +22,12 @@ First of all let's start with basics. Pick your favorite plugin manager: [Pathog Then add the line `autocmd vimenter * ++nested colorscheme gruvbox` to your .vimrc file, and restart vim. If you are using a plugin manager like Vundle, make sure this setting is after the plugin initialization section. [the reason we are using autocmd is that, vim always read .vimrc file first and after that starts to load plugins, so in this case, we use autocmd vimenter, to be sure that all plugins are loaded completely and then use gruvbox] +If you're using [Packer](https://github.com/wbthomason/packer.nvim), you can just put a single line + +```lua +use {'morhetz/gruvbox', config = function() vim.cmd.colorscheme("gruvbox") end } +``` + If you're using GUI version of vim that should be enough. Otherwise let me guide you through the hell of [terminal specific issues](https://github.com/morhetz/gruvbox/wiki/Terminal-specific). Refer [Usage page](https://github.com/morhetz/gruvbox/wiki/Usage) on dark and light themes switching and cursor inversions.