File tree Expand file tree Collapse file tree 2 files changed +30
-7
lines changed
tests/test-sources/plugins/pluginmanagers Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 41
41
plugins . lazy = {
42
42
enable = mkEnableOption "lazy.nvim" ;
43
43
44
+ setup = mkOption { type = types . submodule { freeformType = types . attrsOf types . anything ; } ; } ;
45
+
44
46
plugins =
45
47
with types ;
46
48
let
203
205
in
204
206
mkIf ( cfg . plugins != [ ] ) ''
205
207
require('lazy').setup(
206
- {
207
- dev = {
208
- path = "${ lazyPath } ",
209
- patterns = {"."},
210
- fallback = false
211
- },
212
- spec = ${ helpers . toLuaObject packedPlugins }
208
+ ${
209
+ helpers . toLuaObject (
210
+ {
211
+ dev = {
212
+ path = "${ lazyPath } " ;
213
+ patterns = [ "." ] ;
214
+ fallback = false ;
215
+ } ;
216
+ spec = packedPlugins ;
217
+ }
218
+ // cfg . setup
219
+ )
213
220
}
214
221
)
215
222
'' ;
Original file line number Diff line number Diff line change 9
9
plugins . lazy = with pkgs . vimPlugins ; {
10
10
enable = true ;
11
11
12
+ # Setup properties can be directly passed
13
+ setup = {
14
+ performance = {
15
+ rtp = {
16
+ # disable some rtp plugins
17
+ disabled_plugins = [
18
+ "gzip"
19
+ "tarPlugin"
20
+ "tohtml"
21
+ "tutor"
22
+ "zipPlugin"
23
+ ] ;
24
+ } ;
25
+ } ;
26
+ } ;
27
+
12
28
plugins = [
13
29
vim-closer
14
30
You can’t perform that action at this time.
0 commit comments