Saghen / blink.cmp

Performant, batteries-included completion plugin for Neovim
MIT License
632 stars 27 forks source link

Expose snippet reload function, enables integration with plugins like nvim-scissors #28

Open chrisgrieser opened 2 days ago

chrisgrieser commented 2 days ago

I am the maintainer of nvim-scissors, and would like to implement a hot-reload-support for blink.cmp. To be able to do that, blink.cmp needs to expose some sort of function that reloads a snippet file inside providers → 'blink.cmp.sources.path' → opts.searchpaths..

snippet engines usually expose such functionality, so other plugins can properly integrate with them, e.g. require("luasnip.loaders").reload_file(path) for luasnip: https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#loaders

It would be great for blink.cmp to also expose such a function.