fix : luasnip not working (#1000)

This commit is contained in:
siduck 2022-04-30 21:48:11 +05:30
parent 3c282a5fd5
commit 36aeebc580

View File

@ -112,7 +112,7 @@ end
M.luasnip = function() M.luasnip = function()
local present, luasnip = pcall(require, "luasnip") local present, luasnip = pcall(require, "luasnip")
if present then if not present then
return return
end end
@ -121,9 +121,7 @@ M.luasnip = function()
updateevents = "TextChanged,TextChangedI", updateevents = "TextChanged,TextChangedI",
} }
-- add snippet path here! require("luasnip.loaders.from_vscode").lazy_load()
require("luasnip/loaders/from_vscode").load { paths = {} }
require("luasnip/loaders/from_vscode").load()
end end
M.signature = function() M.signature = function()