mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(native_snippets): don't try to enable native snippets on Neovim < 0.10.0 and show warning
This commit is contained in:
parent
0af1fd82d7
commit
f308867570
1 changed files with 5 additions and 0 deletions
|
@ -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!",
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue