Replies: 1 comment 10 replies
-
Is not that the same as putting the scripts to load the snippets on |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Considering the functionality in this wiki-entry
will soon be deprecatedis now deprecated, I'd like to add a loader for lua-snippets which is capable of loading them on-demand (likelazy_load
from the current loaders)I think a format very close to that of snipmate, eg. a directory containing
ft.lua
-files, each returns a table, containing keyssnippets
,autosnippets
, would be pretty good, as it's almost compatible with the current solution.Maybe we could also autodetect these collections by requiring that for autodetection they be named eg.
luasnippets
and be in a directory inpath
(justlua/snippets
+require
would work only as long as just one luasnippet-collection is present).Reload after changes should be implementable by invalidating previously loaded snippets (I think we'll need a way to clean up invalidated snippets :D) and re-adding the changed file.
What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions