From f3088675703986b6d37061ebcf0a417c132fd45f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 29 Mar 2024 09:18:38 +0100 Subject: [PATCH] fix(native_snippets): don't try to enable native snippets on Neovim < 0.10.0 and show warning --- lua/lazyvim/plugins/extras/coding/native_snippets.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/lazyvim/plugins/extras/coding/native_snippets.lua b/lua/lazyvim/plugins/extras/coding/native_snippets.lua index 72080c92..74b70784 100644 --- a/lua/lazyvim/plugins/extras/coding/native_snippets.lua +++ b/lua/lazyvim/plugins/extras/coding/native_snippets.lua @@ -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!", {