refac(prog/nvim): improve neoformat and gitgutter
This commit is contained in:
parent
c133283106
commit
9074b979fb
1 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ set colorcolumn=80,100,120
|
||||||
set hidden
|
set hidden
|
||||||
set nobackup
|
set nobackup
|
||||||
set nowritebackup
|
set nowritebackup
|
||||||
set updatetime=300
|
set updatetime=100
|
||||||
set shortmess+=c
|
set shortmess+=c
|
||||||
set nopaste
|
set nopaste
|
||||||
set foldcolumn=0
|
set foldcolumn=0
|
||||||
|
@ -68,8 +68,8 @@ call plug#end()
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Plugin: GitGutter {{{
|
" Plugin: GitGutter {{{
|
||||||
let g:gitgutter_set_sign_backgrounds = 1
|
let g:gitgutter_sign_priority = 1
|
||||||
let g:gitgutter_highlight_linenrs = 1
|
let g:gitgutter_set_sign_backgrounds = 0
|
||||||
|
|
||||||
nnoremap <leader>ghl :GitGutterLineHighlightsToggle<CR>
|
nnoremap <leader>ghl :GitGutterLineHighlightsToggle<CR>
|
||||||
" }}}
|
" }}}
|
||||||
|
@ -78,10 +78,10 @@ let g:sql_type_default = 'pgsql'
|
||||||
|
|
||||||
" Plugin: NeoFormat {{{
|
" Plugin: NeoFormat {{{
|
||||||
let g:neoformat_try_node_exe = 1
|
let g:neoformat_try_node_exe = 1
|
||||||
|
let g:neoformat_only_msg_on_error = 1
|
||||||
aug fmt
|
aug fmt
|
||||||
au!
|
au!
|
||||||
au FileType javascript,javascriptreact,typescript,typescriptreact,rust,haskell
|
au BufWritePre * undojoin | Neoformat
|
||||||
\ au BufWritePre <buffer> undojoin | Neoformat
|
|
||||||
aug END
|
aug END
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue