From 9a3c72bd6bd4935b6ee2ec77e61833d94c26353a Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Wed, 2 Sep 2020 22:03:37 -0400 Subject: [PATCH] Add vim-gitgutter --- .config/nixpkgs/home.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.config/nixpkgs/home.nix b/.config/nixpkgs/home.nix index 429eb95..be2b11f 100644 --- a/.config/nixpkgs/home.nix +++ b/.config/nixpkgs/home.nix @@ -202,6 +202,7 @@ extraConfig = '' call plug#begin('~/.vim/plugged') Plug 'LnL7/vim-nix' + Plug 'airblade/vim-gitgutter' Plug 'ap/vim-css-color' Plug 'dracula/vim', { 'as': 'dracula' } Plug 'fatih/vim-go' @@ -242,20 +243,27 @@ set t_Co=256 set tabstop=2 set wildmenu + " Remember line number if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif endif + " Search down into subfolders " Provides tab-completion for all file-related tasks set path+=** filetype plugin indent on + " Enable folding with the spacebar + nnoremap za + " replace visually selected vnoremap "hy:%s/h//g + " Custom Commands command JsonFormat execute "::%!jq '.'" + " Shortcuts map r :Rg map f :Files @@ -264,23 +272,29 @@ map :tabn map :tabp map :tabnew + " Copypasta noremap y "+y noremap p "+p + " Python indentation au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix let python_highlight_all=1 syntax on colorscheme dracula + " Transparency hi Normal guibg=NONE ctermbg=NONE + " highlight red lines highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ + " groovy syntax au BufNewFile,BufRead *.groovy set tabstop=2 shiftwidth=2 expandtab au BufNewFile,BufRead Jenkinsfile setf groovy au BufNewFile,BufRead Jenkinsfile set tabstop=2 shiftwidth=2 expandtab + " vim-go let g:go_auto_sameids = 0 let g:go_fmt_command = "goimports" @@ -305,12 +319,15 @@ let g:go_metalinter_autosave=1 let g:go_metalinter_autosave_enabled=['golint', 'govet'] let g:go_rename_command = 'gopls' + " vim-terraform let g:terraform_align=1 let g:terraform_fmt_on_save=1 let g:terraform_fold_sections=1 + " rust.vim let g:rustfmt_autosave = 1 + " syntastic set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} @@ -319,6 +336,7 @@ let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 + " fzf.vim let g:fzf_preview_window = 'right:60%' let g:fzf_layout = { 'window': 'enew' }