1
- plug.txt plug Last change: March 7 2024
1
+ plug.txt plug Last change: March 14 2024
2
2
PLUG - TABLE OF CONTENTS *plug* *plug-toc*
3
3
==============================================================================
4
4
@@ -69,31 +69,36 @@ Example~
69
69
70
70
" Make sure you use single quotes
71
71
72
- " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
72
+ " Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
73
73
Plug 'junegunn/vim-easy-align'
74
74
75
75
" Any valid git URL is allowed
76
- Plug 'https://github.com/junegunn/vim-github-dashboard.git'
77
-
78
- " Multiple Plug commands can be written in a single line using | separators
79
- Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
80
-
81
- " On-demand loading
82
- Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
83
- Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
84
-
85
- " Using a non-default branch
86
- Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
76
+ Plug 'https://github.com/junegunn/seoul256.vim.git'
87
77
88
78
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
89
79
Plug 'fatih/vim-go', { 'tag': '*' }
90
80
91
- " Plugin options
92
- Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
81
+ " Using a non-default branch
82
+ Plug 'neoclide/coc.nvim', { 'branch': 'release' }
83
+
84
+ " Use 'dir' option to install plugin in a non-default directory
85
+ Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
93
86
94
- " Plugin outside ~/.vim/plugged with post-update hook
87
+ " Post-update hook: run a shell command after installing or updating the plugin
95
88
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
96
89
90
+ " Post-update hook can be a lambda expression
91
+ Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
92
+
93
+ " If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
94
+ Plug 'nsf/gocode', { 'rtp': 'vim' }
95
+
96
+ " On-demand loading: loaded when the specified command is executed
97
+ Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
98
+
99
+ " On-demand loading: loaded when a file with a specific file type is opened
100
+ Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
101
+
97
102
" Unmanaged plugin (manually installed and updated)
98
103
Plug '~/my-prototype-plugin'
99
104
@@ -117,31 +122,38 @@ example above.
117
122
118
123
vim.call('plug#begin')
119
124
120
- -- Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
125
+ -- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
121
126
Plug('junegunn/vim-easy-align')
122
127
123
128
-- Any valid git URL is allowed
124
- Plug('https://github.com/junegunn/vim-github-dashboard.git')
125
-
126
- -- Multiple Plug commands can be written in a single line using ; separators
127
- Plug('SirVer/ultisnips'); Plug('honza/vim-snippets')
128
-
129
- -- On-demand loading
130
- Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
131
- Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
132
-
133
- -- Using a non-default branch
134
- Plug('rdnetto/YCM-Generator', { ['branch'] = 'stable' })
129
+ Plug('https://github.com/junegunn/seoul256.vim.git')
135
130
136
131
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
137
132
Plug('fatih/vim-go', { ['tag'] = '*' })
138
133
139
- -- Plugin options
140
- Plug('nsf/gocode', { ['tag'] = 'v.20150303', ['rtp'] = 'vim' })
134
+ -- Using a non-default branch
135
+ Plug('neoclide/coc.nvim', { ['branch'] = 'release' })
136
+
137
+ -- Use 'dir' option to install plugin in a non-default directory
138
+ Plug('junegunn/fzf', { ['dir'] = '~/.fzf' })
141
139
142
- -- Plugin outside ~/.vim/plugged with post-update hook
140
+ -- Post-update hook: run a shell command after installing or updating the plugin
143
141
Plug('junegunn/fzf', { ['dir'] = '~/.fzf', ['do'] = './install --all' })
144
142
143
+ -- Post-update hook can be a lambda expression
144
+ Plug('junegunn/fzf', { ['do'] = function()
145
+ vim.fn['fzf#install']()
146
+ end })
147
+
148
+ -- If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
149
+ Plug('nsf/gocode', { ['rtp'] = 'vim' })
150
+
151
+ -- On-demand loading: loaded when the specified command is executed
152
+ Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
153
+
154
+ -- On-demand loading: loaded when a file with a specific file type is opened
155
+ Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
156
+
145
157
-- Unmanaged plugin (manually installed and updated)
146
158
Plug('~/my-prototype-plugin')
147
159
0 commit comments