Skip to content

Instantly share code, notes, and snippets.

@kreedz
Last active March 19, 2018 15:50
Show Gist options
  • Save kreedz/d048dc9a46a58ceac3130dd121a60693 to your computer and use it in GitHub Desktop.
Save kreedz/d048dc9a46a58ceac3130dd121a60693 to your computer and use it in GitHub Desktop.
call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-fugitive', { 'on': [] }
Plug 'airblade/vim-gitgutter'
call plug#end()
" to deal with vim-fugitive
command! Gstatus call LazyLoadFugitive('Gstatus')
command! Gdiff call LazyLoadFugitive('Gdiff')
command! Glog call LazyLoadFugitive('Glog')
command! Gblame call LazyLoadFugitive('Gblame')
function! LazyLoadFugitive(cmd)
call plug#load('vim-fugitive')
call fugitive#detect(expand('%:p'))
exe a:cmd
endfunction
"https://github.com/junegunn/vim-plug/issues/525#issuecomment-256169881
Plug 'tpope/vim-fugitive', {'on': []}
function! s:vimplug_load_fugitive()
if exists('b:git_dir')
call plug#load('vim-fugitive')
autocmd! vimplug_load_fugitive
call fugitive#detect(expand('%:p'))
endif
endfunction
augroup vimplug_load_fugitive
au!
au BufWinEnter * call s:vimplug_load_fugitive()
augroup END
" ---
inoremap ;; <Esc>
" ---
let g:NERDTreeIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ 'Ignored' : '☒',
\ "Unknown" : "?"
\ }
" ---
function! StartifyEntryFormat()
return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path'
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment