feat(nvim): add github copilot
This commit is contained in:
parent
03e4b4d25c
commit
0141de5795
6
home-manager/neovim/copilot.lua
Normal file
6
home-manager/neovim/copilot.lua
Normal file
@ -0,0 +1,6 @@
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
})
|
||||
|
||||
require('copilot_cmp').setup({})
|
@ -148,6 +148,10 @@ in
|
||||
# debugging
|
||||
nvim-dap
|
||||
nvim-dap-ui
|
||||
|
||||
# copilot
|
||||
copilot-lua
|
||||
copilot-cmp
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
@ -185,6 +189,8 @@ in
|
||||
|
||||
vim.g.gitblame_date_format = "%r"
|
||||
|
||||
${builtins.readFile ./copilot.lua }
|
||||
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
|
@ -15,6 +15,7 @@ cmp.setup({
|
||||
end
|
||||
},
|
||||
sources = cmp.config.sources({
|
||||
{ name = "copilot" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "nvim_lsp_signature_help" },
|
||||
{ name = "luasnip" },
|
||||
@ -59,6 +60,7 @@ cmp.setup({
|
||||
fields = { "menu", "abbr", "kind" },
|
||||
format = function(entry, item)
|
||||
local menu_icon = {
|
||||
copilot = "",
|
||||
nvim_lsp = "λ",
|
||||
luasnip = "⋗",
|
||||
buffer = "Ω",
|
||||
|
Reference in New Issue
Block a user