mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-29 22:29:57 +02:00
fix(luasnip): make sure all snippets are loaded (#2447)
Co-authored-by: danielo515 <https://github.com/danielo515>
This commit is contained in:
parent
36361e1107
commit
3de6a404c9
1 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue