augroup and ++once both minpac and LSP config

This commit is contained in:
Danielle McLean 2023-10-15 16:22:57 +11:00
parent da72b2ac12
commit 1b0937ee8e
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
2 changed files with 5 additions and 2 deletions

View file

@ -118,7 +118,10 @@ def MissingServers(): list<dict<any>>
enddef enddef
export def LazyConfigure(): void export def LazyConfigure(): void
autocmd VimEnter * ++once Configure() augroup lspLazyConfigure
autocmd!
autocmd VimEnter * ++once Configure()
augroup END
enddef enddef
export def Configure(): void export def Configure(): void

View file

@ -4,7 +4,7 @@ if !exists('g:loaded_minpac')
silent !git clone https://github.com/k-takata/minpac.git $XDG_CACHE_HOME/vim/pack/minpac/opt/minpac silent !git clone https://github.com/k-takata/minpac.git $XDG_CACHE_HOME/vim/pack/minpac/opt/minpac
augroup minpac augroup minpac
autocmd! autocmd!
autocmd VimEnter * call minpac#update() autocmd VimEnter * ++once minpac#update()
augroup END augroup END
endif endif
packadd minpac packadd minpac