Skip to content

Commit

Permalink
fix: do not overwrite all cmp sources #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Feb 26, 2024
1 parent 175b18a commit 9f4d3a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/emoji/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ function Emoji.setup(opts)
utils.error("cannot load nvim-cmp for emoji completion")
return
end
-- Inject emoji as a cmp source.
local cmp = require("cmp")
cmp.register_source("emoji", require("cmp_emoji.init").new())
local sources = { { name = "emoji" } }
cmp.setup.buffer({ sources = sources })
require("cmp").register_source("emoji", require("cmp_emoji.init").new())
end
end

Expand Down

0 comments on commit 9f4d3a4

Please sign in to comment.