Sharing config

This commit is contained in:
Chris
2025-11-10 09:19:30 +00:00
parent a21a1a3386
commit 2255489fd8
4 changed files with 48 additions and 27 deletions

View File

@@ -1,25 +1,29 @@
-- AI code completion
-- return {
-- 'zbirenbaum/copilot.lua',
-- event = 'InsertEnter',
-- config = function()
-- require('copilot').setup {
-- suggestion = {
-- enabled = true,
-- auto_trigger = true,
-- keymap = {
-- accept = '<Tab>',
-- },
-- },
-- filetypes = {
-- yaml = true,
-- markdown = true,
-- gitcommit = true,
-- gitrebase = true,
-- },
-- }
-- end,
-- }
if (vim.fn.getenv('COPILOT_API_KEY') ~= nil) then
return {
'zbirenbaum/copilot.lua',
event = 'InsertEnter',
config = function()
require('copilot').setup {
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = '<Tab>',
},
},
filetypes = {
yaml = true,
markdown = true,
gitcommit = true,
gitrebase = true,
},
}
end,
}
end
return {
'milanglacier/minuet-ai.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },