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