From 36aeebc5801053a90b1817fba9e8d5b3c87c4e45 Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 30 Apr 2022 21:48:11 +0530 Subject: [PATCH] fix : luasnip not working (#1000) --- lua/plugins/configs/others.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index bad0b63..55b2561 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -112,7 +112,7 @@ end M.luasnip = function() local present, luasnip = pcall(require, "luasnip") - if present then + if not present then return end @@ -121,9 +121,7 @@ M.luasnip = function() updateevents = "TextChanged,TextChangedI", } - -- add snippet path here! - require("luasnip/loaders/from_vscode").load { paths = {} } - require("luasnip/loaders/from_vscode").load() + require("luasnip.loaders.from_vscode").lazy_load() end M.signature = function()