Change how we decide whether to do an initial PackUpdate - the previous approach worked fine in Vim, but not in Neovim
This commit is contained in:
parent
1725d1bc14
commit
fc62b18488
1 changed files with 7 additions and 2 deletions
|
@ -7,14 +7,19 @@ function! s:ensure_dir(dir)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" These are really clever - minpac will actually be loaded on the fly only
|
||||||
|
" when you need to update or clean your packages, rather than all the time.
|
||||||
command! PackUpdate source $XDG_CONFIG_HOME/vim/plugins.vim | call minpac#update()
|
command! PackUpdate source $XDG_CONFIG_HOME/vim/plugins.vim | call minpac#update()
|
||||||
command! PackClean source $XDG_CONFIG_HOME/vim/plugins.vim | call minpac#clean()
|
command! PackClean source $XDG_CONFIG_HOME/vim/plugins.vim | call minpac#clean()
|
||||||
|
|
||||||
silent! packadd vim-sensible
|
" If the pack directory doesn't exist, we haven't installed any packages yet,
|
||||||
if !exists('g:loaded_sensible')
|
" so let's call PackUpdate.
|
||||||
|
if !isdirectory($XDG_CACHE_HOME . '/vim/pack')
|
||||||
PackUpdate
|
PackUpdate
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Use Inkpot, since it's gorgeous, but with a transparent background instead
|
||||||
|
" of a solid black one.
|
||||||
augroup transparent_term
|
augroup transparent_term
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd ColorScheme * highlight Normal ctermbg=NONE
|
autocmd ColorScheme * highlight Normal ctermbg=NONE
|
||||||
|
|
Loading…
Reference in a new issue