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()
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()