LuaSnip
LuaSnip copied to clipboard
Override default
Hi @L3MON4D3 I saw this in @tjdevries config, should we upstream it? (In that case it will be the first real "push requests" in history 😄 )
https://github.com/tjdevries/config.nvim/blob/c16bab0565253f862da0cef6a288399640b3c567/lua/custom/snippets.lua#L41
override_builtin doesn't mean anything to me, am I missing something? :sweat_smile: (I'm assuming I am, please educate me :D)
That single line is incorrect, but the rest of the file is replacing the built-in snippets of vim. So my guess is that that's the API @tjdevries was expecting for that same usecase.
Ahh I see..
Yeah that seems like a good idea, quickly swap out snippet engines, and hooking vim.*-functions is very well-known. I like it :)
I'd like to mention that implementing this as a simple api-function would work as well, but is probably more cumbersome for the user (setting .setup({...})-values can be done in the lazy-configuration directly)