nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

feat(ghost_text): Added custom multi-line snippets ghost_text support

Open ldfwbebp opened this issue 1 year ago • 2 comments

I recently started using LazyVim, which utilizes nvim-snippets instead of LuaSnip. As per #1886 and #1955, it's known that current branch doesn't support multi-line ghost_text for LuaSnip custom snippets, so I've added this feature (similar to nvim-snippets in LazyVim). Here's how this feature works.

https://github.com/user-attachments/assets/c073541a-a194-45e7-9847-de1a0bacb397

I'm new to Neovim and Lua, so please let me know if there are any issues. Thank you! @hrsh7th

ldfwbebp avatar Jul 27 '24 15:07 ldfwbebp

Great! Let's hope this will be merged

pidgeon777 avatar Aug 31 '24 14:08 pidgeon777

This doesn't look so good with snippets when the prefix pattern don't match the documentation body, for example markdown snippets:

image

image

davidsierradz avatar Oct 09 '24 15:10 davidsierradz