-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(completion): add
cmp-emoji
completion source
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# cmp-emoji | ||
|
||
nvim-cmp source for emoji | ||
|
||
**Repository:** <https://github.com/hrsh7th/cmp-emoji> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
return { | ||
"hrsh7th/nvim-cmp", | ||
optional = true, | ||
dependencies = { "kdheepak/cmp-emoji" }, | ||
opts = function(_, opts) | ||
if not opts.sources then opts.sources = {} end | ||
table.insert(opts.sources, { name = "emoji", priority = 700 }) | ||
end, | ||
} |
4b6110e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is
nvim-cmp
marked as optional when it's required for the plugin?I don't see a recipe for including it
4b6110e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvim-cmp
is a default plugin. It is basically so if the user wants to quickly disablenvim-cmp
this pack doesn't add it back in4b6110e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although there is a copy/paste error here