Add copilot support
This commit is contained in:
parent
fcda8f82b9
commit
9c6fd2dc03
|
@ -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
|
return M
|
||||||
|
|
|
@ -33,6 +33,15 @@ return {
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
lazy = false,
|
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!
|
-- These are some examples, uncomment them if you want to see them work!
|
||||||
-- {
|
-- {
|
||||||
-- "neovim/nvim-lspconfig",
|
-- "neovim/nvim-lspconfig",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user