Closed milisims closed 6 years ago
Okay many of the plugins I want to use are not loading via this method (I'm loading using a deferred method for a lot of them, so I didn't notice the ones that were not loading. Looks to be neovim, so I'll post over there after re-reading :h packadd
and making sure that it seems like this should work...
If anyone stumbles across this somehow, packadd!
adds to the runtimepath
without executing anything. the plugin folder is examined via (equivalently, see :h load-plugins
) :runtime! plugin/**/*.vim
, which means editing rtp
after running the runtime command doesn't do anything. packadd
works fine, as does packadd!
somewhere before the plugins are loaded.
I'm not sure if this is better to be in neovim or here, but this setup will load other plugins (I haven't tested every single plugin of mine, but I use snea regularly (using all of the bindings to overwrite defaults), so I opted to post here first. This was tested on a mac, neovim 0.2.2_1 installed via brew, as well as ubuntu 16.04 LTS installed via the recommended method in neovim repo (PPA I think). Logs are from the mac version.
My directory structure is (note: ~/.config/nvim symlinks to ~/.dotfiles/vim):
To start, my init.vim is empty (a few comments). 20-plugins.vim contains:
When I start neovim, f is correctly bound to the mapping above, but it doesn't load the function, as the
<Plug>Sneak_f
is unmapped. The script is never sourced.Running
:scriptnames
:If I execute
:packadd vim-sneak
after opening nvim, the binding works and the script is loaded (confirmed by scriptnames)If I load another plugin (for example, I use gruvbox as a colorscheme currently), it loads as expected.
Edit:
packadd
without!
works as expected as well, in the 20-plugins.vim file