fix(vim): use lewis6991/gitsigns.nvim instead of airblade/vim-gitgutter for better performance
This commit is contained in:
parent
bd774e50ed
commit
330e7792b9
14
.vimrc
14
.vimrc
|
@ -51,7 +51,7 @@ set ttimeoutlen=0
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildoptions=fuzzy,pum
|
set wildoptions=fuzzy,pum
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
set signcolumn=yes:2
|
" set signcolumn=yes:2
|
||||||
" set cmdheight=0
|
" set cmdheight=0
|
||||||
set pumblend=40
|
set pumblend=40
|
||||||
set winblend=40
|
set winblend=40
|
||||||
|
@ -114,12 +114,18 @@ Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'rhysd/conflict-marker.vim'
|
Plug 'rhysd/conflict-marker.vim'
|
||||||
Plug 'ryanoasis/vim-devicons'
|
Plug 'ryanoasis/vim-devicons'
|
||||||
Plug 'airblade/vim-gitgutter'
|
" this plugin slows vim down when dealing
|
||||||
|
" with large files, so I switch to the Nvim version
|
||||||
|
" Plug 'airblade/vim-gitgutter'
|
||||||
|
if has('nvim')
|
||||||
|
Plug 'lewis6991/gitsigns.nvim'
|
||||||
|
endif
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
Plug '907th/vim-auto-save'
|
Plug '907th/vim-auto-save'
|
||||||
Plug 'markonm/traces.vim'
|
Plug 'markonm/traces.vim'
|
||||||
Plug 'stevearc/oil.nvim'
|
Plug 'stevearc/oil.nvim'
|
||||||
|
Plug 'vim-scripts/LargeFile'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -328,6 +334,10 @@ let g:airline_left_alt_sep = ''
|
||||||
let g:airline_right_sep = ''
|
let g:airline_right_sep = ''
|
||||||
let g:airline_right_alt_sep = ''
|
let g:airline_right_alt_sep = ''
|
||||||
|
|
||||||
|
if has('nvim')
|
||||||
|
lua require('gitsigns').setup()
|
||||||
|
endif
|
||||||
|
|
||||||
" fix c++ comment style in Neovim
|
" fix c++ comment style in Neovim
|
||||||
" ref: https://github.com/tpope/vim-commentary/issues/15#issuecomment-23127749
|
" ref: https://github.com/tpope/vim-commentary/issues/15#issuecomment-23127749
|
||||||
autocmd FileType c,cpp,cs,java setlocal commentstring=//\ %s
|
autocmd FileType c,cpp,cs,java setlocal commentstring=//\ %s
|
||||||
|
|
|
@ -411,7 +411,7 @@ in {
|
||||||
# This may not apply. Also try `git config --global gpg.ssh.program "/home/user/.nix-profile/bin/op-ssh-sign"`
|
# This may not apply. Also try `git config --global gpg.ssh.program "/home/user/.nix-profile/bin/op-ssh-sign"`
|
||||||
# gpg."ssh".program = "${unstable._1password-gui}/bin/op-ssh-sign";
|
# gpg."ssh".program = "${unstable._1password-gui}/bin/op-ssh-sign";
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
core.editor = "vim";
|
core.editor = "nvim";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue