Setup copilot, code-companion, mcp-hub and noice
This commit is contained in:
1
init.lua
1
init.lua
@@ -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' },
|
||||
|
||||
8
lua/custom/plugins/code-companion.lua
Normal file
8
lua/custom/plugins/code-companion.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
'olimorris/codecompanion.nvim',
|
||||
opts = {},
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
}
|
||||
30
lua/custom/plugins/copilot.lua
Normal file
30
lua/custom/plugins/copilot.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
||||
14
lua/custom/plugins/mcp-hub.lua
Normal file
14
lua/custom/plugins/mcp-hub.lua
Normal 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,
|
||||
}
|
||||
15
lua/custom/plugins/noice.lua
Normal file
15
lua/custom/plugins/noice.lua
Normal 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',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user