added copilot configuration and theming

This commit is contained in:
aminnairi
2023-12-02 23:51:47 +01:00
parent 38cf4d903a
commit ed71779212
2 changed files with 5 additions and 1 deletions
@@ -5,6 +5,7 @@ return {
mode = 'symbol_text', mode = 'symbol_text',
preset = 'codicons', preset = 'codicons',
symbol_map = { symbol_map = {
Copilot = "",
Text = "󰉿", Text = "󰉿",
Method = "󰆧", Method = "󰆧",
Function = "󰊕", Function = "󰊕",
@@ -32,5 +33,7 @@ return {
TypeParameter = "", TypeParameter = "",
}, },
}) })
vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"})
end end
} }
+2 -1
View File
@@ -27,9 +27,10 @@ return {
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(), ["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }), ["<C-l>"] = cmp.mapping.confirm({ select = true }),
}), }),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "copilot", group_index = 2 },
{ name = "nvim_lsp", group_index = 2 }, { name = "nvim_lsp", group_index = 2 },
{ name = "luasnip", group_index = 2 }, { name = "luasnip", group_index = 2 },
{ name = "path", group_index = 2 }, { name = "path", group_index = 2 },