From 83e10f32da00d5ff72637ea4ba6c225e9c198468 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 21 Oct 2022 01:03:17 +0200 Subject: [PATCH] vim:plugins: Hotfix broken packloadall w/ nvim 0.8 --- .config/vim/vimrc.d/20-plugins.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.config/vim/vimrc.d/20-plugins.vim b/.config/vim/vimrc.d/20-plugins.vim index e032c18..547a7c0 100644 --- a/.config/vim/vimrc.d/20-plugins.vim +++ b/.config/vim/vimrc.d/20-plugins.vim @@ -1,6 +1,11 @@ " Plugins """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Load all plugins in pack/*/start -packloadall + +" Source all plugins in XDG_CONFIG_HOME instead of waiting for after the vimrc +" was sourced. +" NOTE: packloadall somehow breaks :Man in neovim 0.8.0 +for file in split(glob($XDG_CONFIG_HOME . '/vim/pack/plugins/start/*'), '\n') + execute 'packadd' substitute(file, '.*/', '', '') +endfor " Auto completion " needs vim >= 8.1.1719 to support features like popup and text property as well