mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(extras): setup neogen and mini.snippets integration
This commit is contained in:
parent
45d94b3197
commit
1d56b621c1
1 changed files with 6 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ return {
|
||||||
|
|
||||||
local map = {
|
local map = {
|
||||||
["LuaSnip"] = "luasnip",
|
["LuaSnip"] = "luasnip",
|
||||||
|
["mini.snippets"] = "mini",
|
||||||
["nvim-snippy"] = "snippy",
|
["nvim-snippy"] = "snippy",
|
||||||
["vim-vsnip"] = "vsnip",
|
["vim-vsnip"] = "vsnip",
|
||||||
}
|
}
|
||||||
|
|
@ -28,6 +29,11 @@ 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