diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index f79eb940..3c07aa09 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -52,4 +52,3 @@ - Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes issue with setting the workspace directory. - Add `vim.snippets.luasnip.setupOpts`, which was previously missing. -- Add a trigger event for luasnip lazy-loading diff --git a/modules/plugins/snippets/luasnip/config.nix b/modules/plugins/snippets/luasnip/config.nix index 60a5ca6d..0f887e5f 100644 --- a/modules/plugins/snippets/luasnip/config.nix +++ b/modules/plugins/snippets/luasnip/config.nix @@ -11,7 +11,7 @@ in { vim = { lazy.plugins.luasnip = { package = "luasnip"; - event = "BufEnter"; + lazy = true; after = cfg.loaders; setupModule = "luasnip"; inherit (cfg) setupOpts;