2023-05-11 18:41:27 +02:00
|
|
|
-- Github Copilot
|
|
|
|
|
2023-11-02 12:30:56 +01:00
|
|
|
-- Désactivé en faveur de la version communautaire (définie dans plugins/community.lua)
|
|
|
|
return {}
|
|
|
|
|
2023-05-11 18:41:27 +02:00
|
|
|
-- Official plugin
|
2023-11-02 12:30:56 +01:00
|
|
|
|
2023-05-11 18:41:27 +02:00
|
|
|
-- https://docs.github.com/fr/copilot/getting-started-with-github-copilot?tool=neovim
|
2023-11-02 12:30:56 +01:00
|
|
|
-- return {
|
|
|
|
-- {
|
|
|
|
-- "github/copilot.vim",
|
|
|
|
-- event = "InsertEnter",
|
|
|
|
-- keys = {
|
|
|
|
-- { "<F12>", "<cmd>Copilot panel<CR>", mode = { "n", "i", "v" }, desc = "Display Copilot panel" },
|
|
|
|
-- { "<C-a>", "<cmd>copilot#Accept()<CR>", mode = "i", desc = "Accept Copilot solution", { silent = true, expr = true } },
|
|
|
|
-- },
|
|
|
|
-- }
|
|
|
|
-- }
|
|
|
|
-- Exemple de configuration des touches
|
|
|
|
-- imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
|
|
|
|
-- let g:copilot_no_tab_map = v:true
|
2023-05-23 19:35:54 +02:00
|
|
|
|
2023-11-02 12:30:56 +01:00
|
|
|
-- Alternative plugin in pure lua
|
2023-05-23 19:35:54 +02:00
|
|
|
|
2023-11-02 12:30:56 +01:00
|
|
|
-- https://github.com/zbirenbaum/copilot.lua
|
|
|
|
-- return {
|
|
|
|
-- {
|
|
|
|
-- "zbirenbaum/copilot.lua",
|
|
|
|
-- config = function()
|
|
|
|
-- require("copilot").setup()
|
|
|
|
-- end,
|
|
|
|
-- cmd = "Copilot",
|
|
|
|
-- event = "InsertEnter",
|
|
|
|
-- }
|
|
|
|
-- ,
|
|
|
|
-- -- {
|
|
|
|
-- -- "zbirenbaum/copilot-cmp",
|
|
|
|
-- -- config = function()
|
|
|
|
-- -- require("copilot_cmp").setup()
|
|
|
|
-- -- end
|
|
|
|
-- -- }
|