Always load Editorconfig the same way :)

This commit is contained in:
Danielle McLean 2023-11-04 13:44:52 +11:00
parent 66dc71d9b3
commit e82917918f
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
2 changed files with 7 additions and 2 deletions

View file

@ -44,7 +44,9 @@ inoremap jj <Esc>
# tools my beloved
nnoremap <C-t> :Files<CR>
silent! packadd! editorconfig
# We will always have Editorconfig available as an optional package, either
# because it was bundled with Vim or because Minpac installed it that way.
packadd! editorconfig
set belloff+=ctrlg

View file

@ -16,8 +16,11 @@ minpac#add('prabirshrestha/async.vim')
minpac#add('lifepillar/vim-gruvbox8')
# If this Vim doesn't already provide Editorconfig as part of its runtime,
# install it ourselves, using exactly the same package name and type (opt, so
# that it can be loaded with :packadd).
if !isdirectory($VIMRUNTIME .. '/pack/dist/opt/editorconfig')
minpac#add('editorconfig/editorconfig-vim')
minpac#add('editorconfig/editorconfig-vim', {name: 'editorconfig', type: 'opt'})
endif
minpac#add('direnv/direnv.vim')