Got Gruvbox working.

This commit is contained in:
Warwick 2022-03-04 16:16:36 +00:00
parent 001f85495e
commit f08e30333e

View file

@ -12,9 +12,9 @@ Plugin 'VundleVim/Vundle.vim'
" Pretty " Pretty
Plugin 'itchyny/lightline.vim' Plugin 'itchyny/lightline.vim'
"Plug 'morhetz/gruvbox' Plugin 'morhetz/gruvbox'
Plugin 'ShowTrailingWhitespace' Plugin 'ShowTrailingWhitespace'
Plugin 'Yggdroot/indentLine' "Plugin 'Yggdroot/indentLine'
" Functional " Functional
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
@ -30,7 +30,6 @@ Plugin 'mattn/vim-lsp-settings'
Plugin 'prabirshrestha/asyncomplete.vim' Plugin 'prabirshrestha/asyncomplete.vim'
Plugin 'tikhomirov/vim-glsl' Plugin 'tikhomirov/vim-glsl'
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
@ -46,6 +45,17 @@ filetype plugin indent on " required
" see :h vundle for more details or wiki for FAQ " see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line " Put your non-Plugin stuff after this line
" Gruvbox colours
let g:gruvbox_contrast_dark='hard'
let g:gruvbox_contrast_light='hard'
set background=dark
if has("termguicolors")
let g:gruvbox_termcolors=256
else
let g:gruvbox_termcolors=16
endif
colorscheme gruvbox
" Plugin leader mappings " Plugin leader mappings
" Tab completion " Tab completion
@ -78,7 +88,7 @@ function! s:on_lsp_buffer_enabled() abort
nmap <buffer> <leader>lK <plug>(lsp-hover) nmap <buffer> <leader>lK <plug>(lsp-hover)
let g:lsp_format_sync_timeout = 1000 let g:lsp_format_sync_timeout = 1000
autocmd! BufWritePre *.rs,*.go,*.cpp,*.c,*.h,*.cs call execute('LspDocumentFormatSync') autocmd! BufWritePre *.rs,*.go,*.cpp,*.c,*.h,*.cs,*.js,*.jsx,*.ts call execute('LspDocumentFormatSync')
" refer to doc to add more commands " refer to doc to add more commands
endfunction endfunction