mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
inject mini.snippets as dependency to neogen
This commit is contained in:
parent
1d56b621c1
commit
132d14d2c1
1 changed files with 1 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"danymat/neogen",
|
"danymat/neogen",
|
||||||
|
dependencies = LazyVim.has("mini.snippets") and { "mini.snippets" } or {},
|
||||||
cmd = "Neogen",
|
cmd = "Neogen",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
@ -29,11 +30,6 @@ return {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- NOTE: neogen does not require mini.snippets
|
|
||||||
if opts.snippet_engine == "mini" then
|
|
||||||
require("mini.snippets")
|
|
||||||
end
|
|
||||||
|
|
||||||
if vim.snippet then
|
if vim.snippet then
|
||||||
opts.snippet_engine = "nvim"
|
opts.snippet_engine = "nvim"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue