Skip to content

Commit

Permalink
docs: simplify cmp-emoji example
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 9, 2023
1 parent a13d5c9 commit 92b2689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/plugins/example.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},

Expand Down

0 comments on commit 92b2689

Please sign in to comment.