Skip to content

Commit 562683e

Browse files
authored
Merge branch 'main' into rainbow-global-toggle-1708
2 parents b5aead9 + ec32213 commit 562683e

7 files changed

Lines changed: 85 additions & 18 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Mcphub.nvim
22

3-
A powerful Neovim plugin for managing MCP (Model Context Protocol) servers
3+
A powerful Neovim plugin for managing MCP (Model Context Protocol) servers.
44

5-
_Note_: This plugin requires [mcp-hub](https://www.npmjs.com/package/mcp-hub) to be installed. This can be done with `npm`, `bun`, `yarn`, or `pnpm`.
5+
> [!NOTE]
6+
> This AstroCommunity spec configures the Neovim plugin only. Look at upstream docs for instructions on how to install.
67
78
**Repository:** <https://github.com/ravitemer/mcphub.nvim/tree/main>

lua/astrocommunity/editing-support/mcphub-nvim/init.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ return {
3939
end,
4040
},
4141
},
42-
},
43-
{
44-
"CopilotC-Nvim/CopilotChat.nvim",
45-
optional = true,
46-
opts = {
47-
extensions = {
48-
copilotchat = {
49-
enabled = true,
50-
convert_tools_to_functions = true,
51-
convert_resources_to_functions = true,
52-
add_mcp_prefix = false,
42+
{
43+
"CopilotC-Nvim/CopilotChat.nvim",
44+
optional = true,
45+
opts = {
46+
extensions = {
47+
copilotchat = {
48+
enabled = true,
49+
convert_tools_to_functions = true,
50+
convert_resources_to_functions = true,
51+
add_mcp_prefix = false,
52+
},
5353
},
5454
},
5555
},
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VectorCode
22

3-
_Note_: This plugin requires [vectorcode-cli](https://github.com/Davidyz/VectorCode) to be installed. This can be done with `uv`
4-
3+
_Note_: This plugin requires [vectorcode-cli](https://github.com/Davidyz/VectorCode) to be installed. This can be done with `uv` (preferred method) or `pipx`.
4+
Installation will try both methods, and will only fail if both fail.
55

66
Repository: <https://github.com/Davidyz/VectorCode>

lua/astrocommunity/editing-support/vector-code-nvim/init.lua

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
return {
22
"Davidyz/VectorCode",
33
build = function()
4-
if not vim.fn.executable "uv" then error "The VectorCode pack requires uv installed" end
5-
vim.cmd "uv tool install vectorcode"
4+
if vim.fn.executable "uv" == 1 then
5+
assert(vim
6+
.system({
7+
"uv",
8+
"tool",
9+
vim.fn.executable "vectorcode" == 1 and "upgrade" or "install",
10+
"vectorcode",
11+
})
12+
:wait().code == 0, "Failed to install or upgrade vectorcode with uv")
13+
elseif vim.fn.executable "pipx" == 1 then
14+
assert(
15+
vim.system({ "pipx", "install", "--force", "git+https://github.com/Davidyz/VectorCode" }):wait().code == 0,
16+
"Failed to install vectorcode with pipx"
17+
)
18+
else
19+
error "The VectorCode pack requires `uv` or `pipx` to be installed"
20+
end
621
end,
722
version = "*", -- optional, depending on whether you're on nightly or release
823
dependencies = { "nvim-lua/plenary.nvim" },
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Elixir Language Pack
2+
3+
**Requirements:** `elixir` and `mix` must be in your `PATH` and executable
4+
5+
This plugin does the following:
6+
7+
- Adds official [elixir-lang/expert](https://github.com/elixir-lang/expert) LSP.
8+
- Adds `mix format` formatter via `conform.nvim`
9+
- Adds `elixir`, `heex`, and `eex` Treesitter parsers
10+
- AstroNvim v6 compatiblity
11+
12+
## Note
13+
14+
This pack uses [Expert](https://expert-lsp.org), the **official** Elixir language server maintained under `elixir-lang`.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
return {
2+
{
3+
"mason-org/mason-lspconfig.nvim",
4+
optional = true,
5+
opts = function(_, opts)
6+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "expert" })
7+
end,
8+
},
9+
{
10+
"AstroNvim/astrocore",
11+
optional = true,
12+
---@type AstroCoreOpts
13+
opts = {
14+
treesitter = { ensure_installed = { "elixir", "heex", "eex" } },
15+
},
16+
},
17+
{
18+
"AstroNvim/astrolsp",
19+
optional = true,
20+
---@type AstroLSPOpts
21+
opts = {
22+
servers = { "expert" },
23+
},
24+
},
25+
{
26+
"stevearc/conform.nvim",
27+
optional = true,
28+
opts = {
29+
formatters_by_ft = {
30+
elixir = { "mix_format" },
31+
heex = { "mix_format" },
32+
eelixir = { "mix_format" },
33+
surface = { "mix_format" },
34+
},
35+
},
36+
},
37+
}

lua/astrocommunity/pack/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Requirements:** `python` must be in your `PATH` and executable
44

5-
This is the base Python pack that provides core functionality:
5+
The default Python pack imports the base pack plus the `basedpyright`, `black`, and `isort` subpacks. Import `astrocommunity.pack.python.base` directly if you only want core Python functionality:
66

77
- Adds `python` and `toml` Treesitter parsers
88
- Adds `debugpy` for debugging with `nvim-dap-python`

0 commit comments

Comments
 (0)