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,10 +62,11 @@ cmp.setup({
["<CR>"] = c_l, ["<CR>"] = c_l,
}), }),
sources = { sources = {
{ name = "nvim_lsp", keyword_length = 1 }, { name = "copilot", group_index = 2 },
{ name = "luasnip", max_item_count = 16 }, { name = "nvim_lsp", keyword_length = 8 },
{ name = "luasnip", max_item_count = 16 },
{ name = "path" }, { name = "path" },
{ name = "buffer", max_item_count = 8 }, { name = "buffer", max_item_count = 8 },
}, },
window = { window = {
completion = cmp.config.window.bordered({ border = { "", "", "", "", "", "", "", "" } }), completion = cmp.config.window.bordered({ border = { "", "", "", "", "", "", "", "" } }),

View File

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