diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index a6b0a1c..bd8a684 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -98,14 +98,13 @@ endif call plug#begin(data_dir . '/plugins') -" source ~/.config/nvim/plugins/abolish.vim source ~/.config/nvim/plugins/airline.vim -source ~/.config/nvim/plugins/arduino.vim +" source ~/.config/nvim/plugins/arduino.vim source ~/.config/nvim/plugins/coc.vim source ~/.config/nvim/plugins/commentary.vim source ~/.config/nvim/plugins/context-commentstring.vim source ~/.config/nvim/plugins/dispatch.vim -source ~/.config/nvim/plugins/dracula.vim +source ~/.config/nvim/plugins/gruvbox.vim source ~/.config/nvim/plugins/editorconfig.vim source ~/.config/nvim/plugins/eunuch.vim source ~/.config/nvim/plugins/exchange.vim diff --git a/.config/nvim/plugins/airline.vim b/.config/nvim/plugins/airline.vim index 8549456..ed860be 100644 --- a/.config/nvim/plugins/airline.vim +++ b/.config/nvim/plugins/airline.vim @@ -1,7 +1,7 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' -let g:airline_theme = 'dracula' +let g:airline_theme = 'gruvbox' let g:airline_powerline_fonts = 1 let g:airline_skip_empty_sections = 1 diff --git a/.config/nvim/plugins/gruvbox.vim b/.config/nvim/plugins/gruvbox.vim new file mode 100644 index 0000000..d87ebc3 --- /dev/null +++ b/.config/nvim/plugins/gruvbox.vim @@ -0,0 +1,19 @@ +Plug 'morhetz/gruvbox' + +"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. +"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support +"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) +if (empty($TMUX)) + if (has("nvim")) + "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > + let $NVIM_TUI_ENABLE_TRUE_COLOR=1 + endif + "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > + "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > + " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > + if (has("termguicolors")) + set termguicolors + endif +endif + +autocmd vimenter * ++nested colorscheme gruvbox