Skip to content

Commit 3e8e1df

Browse files
authored
Merge branch 'main' into fix/sqls
2 parents e86dde8 + 6cf7019 commit 3e8e1df

10 files changed

Lines changed: 110 additions & 21 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
},

lua/astrocommunity/editing-support/nvim-context-vt/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ return {
1010
mappings = {
1111
n = {
1212
["<Leader>uv"] = {
13-
function() require("nvim_context_vt").toggle() end,
14-
desc = "Toggle virutal text context",
13+
function() require("nvim_context_vt").toggle_context() end,
14+
desc = "Toggle virtual text context",
1515
},
1616
},
1717
},

lua/astrocommunity/editing-support/rainbow-delimiters-nvim/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ Rainbow delimiters for Neovim with Tree-sitter
55
**Repository:** <https://github.com/HiPhish/rainbow-delimiters.nvim>
66

77
This is a hard fork of the nvim-ts-rainbow2 plugin & is recommended over it.
8+
9+
This plugin adds the following mappings:
10+
11+
- `<Leader>u(` toggles rainbow delimiters for the current buffer
12+
- `<Leader>u)` toggles rainbow delimiters globally

lua/astrocommunity/editing-support/rainbow-delimiters-nvim/init.lua

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
local enabled = true
2+
13
return {
24
{
35
"HiPhish/rainbow-delimiters.nvim",
@@ -22,6 +24,21 @@ return {
2224
end,
2325
desc = "Toggle rainbow delimeters (buffer)",
2426
},
27+
["<Leader>u)"] = {
28+
function()
29+
local rainbow_delimiters = require "rainbow-delimiters"
30+
enabled = not enabled
31+
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
32+
if enabled then
33+
rainbow_delimiters.enable(bufnr)
34+
else
35+
rainbow_delimiters.disable(bufnr)
36+
end
37+
end
38+
require("astrocore").notify(string.format("Global rainbow delimeters %s", enabled and "on" or "off"))
39+
end,
40+
desc = "Toggle rainbow delimeters (global)",
41+
},
2542
},
2643
},
2744
},
@@ -40,7 +57,7 @@ return {
4057
opts = {
4158
condition = function(bufnr)
4259
local buf_utils = require "astrocore.buffer"
43-
return buf_utils.is_valid(bufnr) and not buf_utils.is_large(bufnr)
60+
return enabled and buf_utils.is_valid(bufnr) and not buf_utils.is_large(bufnr)
4461
end,
4562
},
4663
},
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)