diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-05-11 00:59:23 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-05-11 00:59:23 -0400 |
| commit | 7ca6e531d23bd04cea259c76e8cf27e648cf701f (patch) | |
| tree | d5ef826016b590db0d033597e99837f743fa6b67 /nvim/lua/plugins/nvim-cmp.lua | |
| parent | 5a8a5d613981f279914fccaac25afb2bc0570adb (diff) | |
add emoji completitions, change showtabline
Diffstat (limited to 'nvim/lua/plugins/nvim-cmp.lua')
| -rw-r--r-- | nvim/lua/plugins/nvim-cmp.lua | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua index b560732..ac588f6 100644 --- a/nvim/lua/plugins/nvim-cmp.lua +++ b/nvim/lua/plugins/nvim-cmp.lua @@ -68,11 +68,12 @@ cmp_plugin.config = function() end, }, sources = { - {name = 'path'}, - {name = 'nvim_lsp', keyword_length = 3}, - {name = 'buffer', keyword_length = 3}, - {name = 'luasnip', keyword_length = 2}, - {name = 'cmp_pandoc' }, + { name = 'path'}, + { name = 'nvim_lsp'}, + { name = 'buffer', keyword_length = 4}, + { name = 'luasnip'}, + { name = 'cmp_pandoc' }, + { name = 'emoji' }, }, window = { documentation = { @@ -91,7 +92,8 @@ cmp_plugin.config = function() buffer = '[Buffer]', path = '[Path]', nvim_lua = '[Lua]', - cmp_pandoc = '[Pandoc]' + cmp_pandoc = '[Pandoc]', + emoiji = '[Emoji]' } item.menu = menu[entry.source.name] @@ -255,12 +257,12 @@ return { end }, sources = { - { name = 'nvim_lsp', keyword_length = 3 }, - { name = 'luasnip', keyword_length = 2 }, + { name = 'nvim_lsp'}, + { name = 'luasnip'}, { name = 'path' }, { name = 'nvim_lua' }, - { name = 'buffer', keyword_length = 3 } - -- TODO: add more sources + { name = 'buffer', keyword_length = 4 }, + { name = 'emoji' } }, window = { -- TODO: style cmp windows |
