mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(cmp): don't enable snippets
source without nvim-snippets
(#3527)
Make it easier, so if users decide to disable `nvim-snippets`, they don't have to remove the `snippets` source manually in their config.
This commit is contained in:
parent
cfa8c9fbd4
commit
af80811be0
1 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,9 @@ return {
|
||||||
return LazyVim.cmp.expand(item.body)
|
return LazyVim.cmp.expand(item.body)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
table.insert(opts.sources, { name = "snippets" })
|
if LazyVim.has("nvim-snippets") then
|
||||||
|
table.insert(opts.sources, { name = "snippets" })
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue