Setup copilot, code-companion, mcp-hub and noice

This commit is contained in:
2025-05-12 21:27:24 +10:00
parent fd0db7d448
commit 37aba09336
5 changed files with 68 additions and 0 deletions

View File

@@ -827,6 +827,7 @@ require('lazy').setup({
-- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
group_index = 0,
},
{ name = 'copilot' },
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },

View File

@@ -0,0 +1,8 @@
return {
'olimorris/codecompanion.nvim',
opts = {},
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
},
}

View File

@@ -0,0 +1,30 @@
return {
{
'zbirenbaum/copilot.lua',
cmd = 'Copilot',
event = 'InsertEnter',
config = function()
require('copilot').setup {
suggestion = { enabled = false },
panel = { enabled = false },
}
end,
},
{
'zbirenbaum/copilot-cmp',
event = 'InsertEnter',
config = function()
require('copilot_cmp').setup()
end,
dependencies = {
'zbirenbaum/copilot.lua',
cmd = 'Copilot',
config = function()
require('copilot').setup {
suggestion = { enabled = false },
panel = { enabled = false },
}
end,
},
},
}

View File

@@ -0,0 +1,14 @@
return {
'ravitemer/mcphub.nvim',
dependencies = {
'nvim-lua/plenary.nvim', -- Required for Job and HTTP requests
},
-- uncomment the following line to load hub lazily
--cmd = "MCPHub", -- lazy load
build = 'npm install -g mcp-hub@latest', -- Installs required mcp-hub npm module
-- uncomment this if you don't want mcp-hub to be available globally or can't use -g
-- build = "bundled_build.lua", -- Use this and set use_bundled_binary = true in opts (see Advanced configuration)
config = function()
require('mcphub').setup()
end,
}

View File

@@ -0,0 +1,15 @@
return {
'folke/noice.nvim',
event = 'VeryLazy',
opts = {
-- add any options here
},
dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
'MunifTanjim/nui.nvim',
-- OPTIONAL:
-- `nvim-notify` is only needed, if you want to use the notification view.
-- If not available, we use `mini` as the fallback
'rcarriga/nvim-notify',
},
}