Set up neovim AI plugins (for test run)

master
Hektor Misplon 2025-05-10 22:56:19 +02:00
parent 37a05500bf
commit 1bb976d442
6 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,16 @@
require("codecompanion").setup({
extensions = {
mcphub = {
callback = "mcphub.extensions.codecompanion",
opts = {
make_vars = true,
make_slash_commands = true,
show_result_in_chat = true
}
}
},
strategies = {
chat = { adapter = "openai" },
inline = { adapter = "openai" },
},
})

View File

@ -0,0 +1 @@
require("copilot_cmp").setup()

View File

@ -0,0 +1 @@
require("copilot").setup({})

View File

@ -0,0 +1 @@
require("mcphub").setup({})

View File

@ -62,7 +62,8 @@ cmp.setup({
["<CR>"] = c_l,
}),
sources = {
{ name = "nvim_lsp", keyword_length = 1 },
{ name = "copilot", group_index = 2 },
{ name = "nvim_lsp", keyword_length = 8 },
{ name = "luasnip", max_item_count = 16 },
{ name = "path" },
{ name = "buffer", max_item_count = 8 },

View File

@ -72,5 +72,9 @@ bootstrap_paq({
{ "3rd/image.nvim", build = false },
{ "polarmutex/beancount.nvim" },
{ "jamesblckwell/nvimkit.nvim" },
{ 'olimorris/codecompanion.nvim' },
{ "ravitemer/mcphub.nvim", build = "pnpm install -g mcp-hub@latest" },
{ "zbirenbaum/copilot.lua" },
{ "zbirenbaum/copilot-cmp" }
})
-- }}}