Last active
March 19, 2018 15:50
-
-
Save kreedz/d048dc9a46a58ceac3130dd121a60693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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