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
2024-03-29 09:18:38 +01:00
parent 0af1fd82d7
commit f308867570

View File

@ -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!",
{