fix(native_snippets): don't try to enable native snippets on Neovim < 0.10.0 and show warning

This commit is contained in:
Folke Lemaitre committed 2024-03-29 09:44:40 +01:00
1 parent 0af1fd82d7
commit f308867570
1 file changed
+5
@@ -1,3 +1,8 @@
if not vim.snippet then
LazyVim.warn("Native snippets are only supported on Neovim >= 0.10.0")
return {}
end
return {
desc = "Use native snippets instead of LuaSnip. Only works on Neovim >= 0.10!",
{