From 2e874407f73c465d15a3f3212a60ef9e3369ce2a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:11:02 +1100 Subject: [PATCH] Load vim-sensible first by putting it at the end of the alphabet (lol?) --- dot-config/vim/plugins.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index ccb04eb..855c2f7 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -11,7 +11,14 @@ packadd minpac minpac#init({dir: $XDG_CACHE_HOME .. '/vim'}) minpac#add('k-takata/minpac', {type: 'opt'}) -minpac#add('tpope/vim-sensible') + +# tpope/vim-sensible is a collection of default Vim settings that "everyone +# can agree on", and is an excellent starting point for anyone's Vim config. +# We'd like it to load first, before any other plugins. However somewhat +# confusingly, Vim's native 'packages' feature adds plugins from pack/*/start +# to 'runtimepath' in REVERSE alphabetical order, so we have to put +# vim-sensible at the end of the alphabet like so to get it loaded first. +minpac#add('tpope/vim-sensible', {name: 'zz-vim-sensible'}) minpac#add('prabirshrestha/async.vim') minpac#add('lifepillar/vim-gruvbox8')