modify ls.available()
to include each snippets origin file path.
#716
Unanswered
molleweide
asked this question in
Q&A
Replies: 1 comment
-
Moved to #717 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposed solution
After digging in the source a little bit I am thinking that the appropriate way to go about this would be
origin_file_path
to each snippet when loading files withload_files(ft, files)
fromluasnip/loaders/from_lua.lua
.luasnip/init.lua
funcget_context()
so that it also grabs the path of each snip.snipmate
, andvscode
as well.With these three additions it would be possible to extend the existing
telescope-luasnip
extension repo to become a CRUD manager. I also have some more ideas for the picker that would make life easier, eg. add snippet to new filetype and then create all of the boilerplate in your default luasnippets path for a new filetype.If @L3MON4D3 if you agree with my proposed solution I will make a PR for this. This should NOT introduce any breaking changes.
Beta Was this translation helpful? Give feedback.
All reactions