fix(luasnip): make sure all snippets are loaded (#2447)

Co-authored-by: danielo515 <https://github.com/danielo515>
This commit is contained in:
Abouzar Parvan 2022-04-11 18:17:08 +04:30 committed by GitHub
parent 36361e1107
commit 3de6a404c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,15 @@ local core_plugins = {
{
"L3MON4D3/LuaSnip",
config = function()
require("luasnip/loaders/from_vscode").lazy_load()
local utils = require "lvim.utils"
require("luasnip.loaders.from_lua").lazy_load()
require("luasnip.loaders.from_vscode").lazy_load {
paths = {
utils.join_paths(get_config_dir(), "snippets"),
utils.join_paths(get_runtime_dir(), "site", "pack", "packer", "start", "friendly-snippets"),
},
}
require("luasnip.loaders.from_snipmate").lazy_load()
end,
},
{