refactor(nvim): ensure emoji completions show in gitcommits

This commit is contained in:
Price Hiller 2023-02-26 20:47:07 -06:00
parent 6f417c327c
commit 7119075c60
No known key found for this signature in database

View File

@ -155,7 +155,10 @@ cmp.setup({
-- Git Commit Completions
cmp.setup.filetype("gitcommit", {
sources = cmp.config.sources({ { name = "conventionalcommits", priority = 20 } }),
sources = cmp.config.sources({
{ name = "conventionalcommits", priority = 20 },
{ { name = "emoji", keyword_length = 2 } },
}),
})
cmp.setup.filetype("toml", { sources = cmp.config.sources({ { name = "crates" } }) })