aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-11-08 16:04:20 +0200
committersrdusr <trevorgray@srdusr.com>2022-11-08 16:04:20 +0200
commitb1f5b99dff87ff9932620646a8b13337cef24eb4 (patch)
treedb0cb0ce823cb14554710c7b619f0d3289fe52c1 /lua
parent919cdc16bad9018e635ad000abbb3970b4b35c4a (diff)
downloaddotfiles-b1f5b99dff87ff9932620646a8b13337cef24eb4.tar.gz
dotfiles-b1f5b99dff87ff9932620646a8b13337cef24eb4.zip
Added sources and cmp menu items: 'cmp_git', 'spell', 'zsh', 'treesitter', 'calc' and 'nvim_lsp_signature_help'
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/cmp.lua17
1 files changed, 15 insertions, 2 deletions
diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua
index 1ef2580..829a448 100644
--- a/lua/plugins/cmp.lua
+++ b/lua/plugins/cmp.lua
@@ -48,7 +48,7 @@ local kind_icons = {
Constructor = "", --"⚙️",
Field = "",
Variable = "",
- Class = "",
+ Class = "ﴯ",
Interface = "",
Module = "",
Property = "",
@@ -168,6 +168,12 @@ cmp.setup({
--end
--}},
{ name = "cmp_git"},
+ { name = "spell"},
+ { name = "zsh" },
+ { name = "treesitter" },
+ { name = "calc" },
+ { name = "nvim_lsp_signature_help" },
+ --{ name = "cmdline" },
--{ name = 'treesitter' },
--{ name = "cmdline", keyword_pattern = [=[[^[:blank:]\!]*]=] }, --exclamation mark hangs a bit without this
--{name = 'luasnip', keyword_length = 2},
@@ -205,6 +211,13 @@ cmp.setup({
nvim_lua = "[api]",
path = "[path]",
gh_issues = "[issues]",
+ spell = "[spell]",
+ zsh = "[zsh]",
+ treesitter = "[treesitter]",
+ calc = "[calc]",
+ nvim_lsp_signature_help = "[signature]",
+ cmdline = "[cmd]"
+
},
},
--},
@@ -251,7 +264,7 @@ cmp.setup({
event = {},
experimental = {
- ghost_text = true,
+ ghost_text = true, -- this feature conflicts with copilot.vim's preview.
hl_group = 'Nontext',
--native_menu = false,
},