aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/completition/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/completition/init.lua')
-rw-r--r--lua/alpha/completition/init.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/alpha/completition/init.lua b/lua/alpha/completition/init.lua
index 02c9978..35ba27e 100644
--- a/lua/alpha/completition/init.lua
+++ b/lua/alpha/completition/init.lua
@@ -40,7 +40,7 @@ cmp.setup {
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "luasnip" },
- { name = "nvim_lsp_signature_help" },
+ { name = "copilot", group_index = 2 },
{
name = "buffer",
keyword_length = 4,
@@ -49,7 +49,7 @@ cmp.setup {
local bufs = {}
for _, win in ipairs(vim.api.nvim_list_wins()) do
local bufnr = vim.api.nvim_win_get_buf(win)
- if vim.api.nvim_buf_get_option(bufnr, 'buftype') ~= 'terminal' then
+ if vim.api.nvim_buf_get_option(bufnr, "buftype") ~= "terminal" then
bufs[bufnr] = true
end
end
@@ -70,10 +70,11 @@ cmp.setup {
with_text = true,
menu = {
buffer = "[buf]",
- nvim_lsp = "[LSP]",
+ nvim_lsp = "[ ]",
nvim_lua = "[api]",
path = "[path]",
luasnip = "[snip]",
+ copilot = "[ﮧ ]",
["vim-dadbod-completion"] = "[DB]",
},
},
@@ -94,6 +95,8 @@ cmp.setup {
},
}
+vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"})
+
-- Set configuration for specific filetype.
cmp.setup.filetype("gitcommit", {
sources = cmp.config.sources({