From 7119075c603b8baf476231129b599690360c2244 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 26 Feb 2023 20:47:07 -0600 Subject: [PATCH] refactor(nvim): ensure emoji completions show in gitcommits --- .../primary/config/lua/plugins/configs/_cmp.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua index d11d4f8b..dfe86cea 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua @@ -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" } }) })