LuaSnip Configuration #2253
Answered
by
dpetka2001
WilliamHangXu
asked this question in
Q&A
-
Hi all, I'm trying to use LuaSnip with LazyVim.
Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
dpetka2001
Dec 29, 2023
Replies: 1 comment 2 replies
-
-- ~/.config/nvim/lua/plugins/luasnip.lua
return {
{
"L3MON4D3/LuaSnip"
dependencies = {
"rafamadriz/friendly-snippets",
config = function()
require("luasnip.loaders.from_vscode").lazy_load()
require("luasnip.loaders.from_lua").lazy_load({ paths = "./lua/snippets" })
end,
},
},
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
WilliamHangXu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
friendly-snippets
and you would have to change the source files from the plugin. That has the possibility that in a future update offriendly-snippets
it will revert back to the previous change or you may also not be able to updatefriendly-snippets
any more because you will have made local changes to the git state and it will diverge from the remote branch.You should instead copy that snippet into your custom personal ones and use it with a different prefix.
~/.config/nvim/lua/snippets
and make Luasnip aware of them with the following