fix : luasnip not working (#1000)
This commit is contained in:
parent
3c282a5fd5
commit
36aeebc580
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue