mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 08:13:39 -05:00
Packer config for neovim users
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user