mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(luasnip): correct name to not show duplicate snippets
This commit is contained in:
parent
c1ee761dd8
commit
186c5a7b17
1 changed files with 9 additions and 1 deletions
|
|
@ -72,7 +72,15 @@ return {
|
||||||
{ "saadparwaiz1/cmp_luasnip" },
|
{ "saadparwaiz1/cmp_luasnip" },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
sources = { compat = { "luasnip" } },
|
sources = {
|
||||||
|
default = { "luasnip" },
|
||||||
|
providers = {
|
||||||
|
luasnip = {
|
||||||
|
name = "Luasnip",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
snippets = {
|
snippets = {
|
||||||
expand = function(snippet)
|
expand = function(snippet)
|
||||||
require("luasnip").lsp_expand(snippet)
|
require("luasnip").lsp_expand(snippet)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue