Closed sQVe closed 3 months ago
I added require('snippets.utils').find_snippet_prefix
back. I like the idea of adding a helper function to allow expanding the word at the cursor though, so I'll look into getting that added. Thanks for the suggestion!
Hey,
I previously used
find_snippet_prefix
, which was removed in commit https://github.com/garymjr/nvim-snippets/commit/8f85fc2a27d54434a22e9d9bc71655ce632fbef0, to conditionally expand snippets outside of the built-innvim-cmp
expand functionality.I explicitly use the following method in my
nvim-cmp
keymap to allow expanding both snippets and ai suggestions with Ctrl + l:See permalink for further context.
Could this plugin provide a suitable API for cases like this? If not, could you consider keeping utilities like
find_snippet_prefix
that make implementations like this easier?Cheers 🍻