mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 15:42:14 +02:00
added copilot configuration and theming
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user