VimPlugin: vim-plug: Difference between revisions
From wikinotes
Line 30: | Line 30: | ||
Most nvim plugins require their configuration to be executed '''after :call plug#end()'''<br> | Most nvim plugins require their configuration to be executed '''after :call plug#end()'''<br> | ||
You can setup autocmds for once plugins have been loaded. | You can setup autocmds for once plugins have been loaded. | ||
{{ NOTE | | |||
I have my own plugin agnostic setup for this. See <code>g:plugin_after_loaded_hooks</code> | |||
}} | |||
<syntaxhighlight lang="vim"> | <syntaxhighlight lang="vim"> |
Latest revision as of 00:36, 15 February 2024
Asynchronous vim plugin manager.
Documentation
github https://github.com/junegunn/vim-plug
Configuration
Basics
call plug#begin('~/.vim/bundle') Plug 'https://github.com/vim-scripts/DrawIt' Plug 'ssh://domain.com:/git/foo-plugin' Plug 'https://domain.com/project', {'branch': 'custom-branch', 'do': ':SomeVimCommand'} Plug '~/my-prototype-plugin' call plug#end()Neovim/Loaded Hooks
Most nvim plugins require their configuration to be executed after :call plug#end()
You can setup autocmds for once plugins have been loaded.NOTE:
I have my own plugin agnostic setup for this. See
g:plugin_after_loaded_hooks
Plug 'https://github.com/numToStr/Comment.nvim' autocmd! User Comment.nvim lua require('Comment').setup()
Usage
:PlugInstall " install plugins :PlugUpdate " update plugins