mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
added copilot configuration and theming
This commit is contained in:
@@ -5,6 +5,7 @@ return {
|
||||
mode = 'symbol_text',
|
||||
preset = 'codicons',
|
||||
symbol_map = {
|
||||
Copilot = "",
|
||||
Text = "",
|
||||
Method = "",
|
||||
Function = "",
|
||||
@@ -32,5 +33,7 @@ return {
|
||||
TypeParameter = "",
|
||||
},
|
||||
})
|
||||
|
||||
vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"})
|
||||
end
|
||||
}
|
||||
|
||||
@@ -27,9 +27,10 @@ return {
|
||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
["<C-e>"] = cmp.mapping.abort(),
|
||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
||||
["<C-l>"] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = "copilot", group_index = 2 },
|
||||
{ name = "nvim_lsp", group_index = 2 },
|
||||
{ name = "luasnip", group_index = 2 },
|
||||
{ name = "path", group_index = 2 },
|
||||
|
||||
Reference in New Issue
Block a user