snippets/luasnip: revert adding lazy event

This commit is contained in:
LilleAila 2025-01-12 09:58:55 +01:00
parent 7012938e21
commit 9818d19937
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
2 changed files with 1 additions and 2 deletions

View file

@ -52,4 +52,3 @@
- Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes - Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes
issue with setting the workspace directory. issue with setting the workspace directory.
- Add `vim.snippets.luasnip.setupOpts`, which was previously missing. - Add `vim.snippets.luasnip.setupOpts`, which was previously missing.
- Add a trigger event for luasnip lazy-loading

View file

@ -11,7 +11,7 @@ in {
vim = { vim = {
lazy.plugins.luasnip = { lazy.plugins.luasnip = {
package = "luasnip"; package = "luasnip";
event = "BufEnter"; lazy = true;
after = cfg.loaders; after = cfg.loaders;
setupModule = "luasnip"; setupModule = "luasnip";
inherit (cfg) setupOpts; inherit (cfg) setupOpts;