diff --git a/docs/manual/hacking/additional-plugins.md b/docs/manual/hacking/additional-plugins.md index bd2d7a64..f0e8d1c5 100644 --- a/docs/manual/hacking/additional-plugins.md +++ b/docs/manual/hacking/additional-plugins.md @@ -127,7 +127,7 @@ vim.your-plugin.setupOpts = { ## Lazy plugins {#sec-lazy-plugins} -If the plugin can be lazy-loaded, `vim.lazy.plugins` should be used to add it. Lazy +If your plugin can be lazy-loaded, you should use `vim.lazy.plugins` to add your plugin. Lazy plugins are managed by `lz.n`. ```nix @@ -145,7 +145,7 @@ in { inherit (cfg) setupOpts; # events that trigger this plugin to be loaded - event = ["DirChanged"]; + events = ["DirChanged"]; cmd = ["YourPluginCommand"]; # keymaps @@ -171,7 +171,7 @@ require('lz.n').load({ require('your-plugin').setup({--[[ your setupOpts ]]}) end, - event = {"DirChanged"}, + events = {"DirChanged"}, cmd = {"YourPluginCommand"}, keys = { {"d", ":YourPluginCommand", mode = {"n"}}, diff --git a/modules/wrapper/lazy/config.nix b/modules/wrapper/lazy/config.nix index 30f9626c..100ee375 100644 --- a/modules/wrapper/lazy/config.nix +++ b/modules/wrapper/lazy/config.nix @@ -86,7 +86,6 @@ in { require('lz.n').load(${toLuaObject lznSpecs}) ''; }) - (mkIf (!cfg.enable) { startPlugins = mapAttrsToList (_: plugin: plugin.package) cfg.plugins; luaConfigPre =