docs: simplify cmp-emoji example
This commit is contained in:
parent
a13d5c9076
commit
92b2689e6f
@ -44,8 +44,7 @@ return {
|
|||||||
dependencies = { "hrsh7th/cmp-emoji" },
|
dependencies = { "hrsh7th/cmp-emoji" },
|
||||||
---@param opts cmp.ConfigSchema
|
---@param opts cmp.ConfigSchema
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local cmp = require("cmp")
|
table.insert(opts.sources, { name = "emoji" })
|
||||||
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } }))
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user