Add copilot support

This commit is contained in:
Daniele Viganò 2024-09-30 23:02:36 +02:00
parent fcda8f82b9
commit 9c6fd2dc03
2 changed files with 22 additions and 0 deletions

View File

@ -19,4 +19,17 @@ M.dap_python = {
}
}
M.copilot = {
n = {
["<C-l>"] = {
function()
vim.fn.feedkeys(vim.fn['copilot#Accept'](), '')
end,
"Copilot Accept",
{replace_keycodes = true, nowait=true, silent=true, expr=true, noremap=true}
}
}
}
return M

View File

@ -33,6 +33,15 @@ return {
"tpope/vim-fugitive",
lazy = false,
},
{
"github/copilot.vim",
lazy = false,
config = function()
vim.g.copilot_no_tab_map = true;
vim.g.copilot_assume_mapped = true;
vim.g.copilot_tab_fallback = "";
end
},
-- These are some examples, uncomment them if you want to see them work!
-- {
-- "neovim/nvim-lspconfig",