-
I use friendly-snippets and myself snippet. Another question: How can I let LuaSnip search snippet in the runtime path and load the snippet from a specific path at the same time? For now, to load them both, I use the below code. -- load friendly-snippets
require("luasnip.loaders.from_vscode").lazy_load({})
-- load my snippets
require("luasnip.loaders.from_vscode").lazy_load({
paths = { "./snippets" },
}) Thanks for your reply in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Some interesting discussion on that in #458, I'll have to get to implementing that eventually
Ouh, that's not possible :/ The loaders accept parameters like So TLDR: reconsider loader-design. (although, the special string for runtimepath would be complementary to refactoring loaders... maybe it makes sense to add it) |
Beta Was this translation helpful? Give feedback.
Some interesting discussion on that in #458, I'll have to get to implementing that eventually
Ouh, that's not possible :/
One solution would be allowing a special string passed to
paths
({paths = "RUNTIMEPATH"}
maybe), but I'm not sure if that's really the best way:The loaders accept parameters like
exclude
(to exclude …