Skip to content

Commit 2d2637e

Browse files
committed
Adding docs/index.html, Adding disabled mcp.lua config(will work on it later)
1 parent ef4177f commit 2d2637e

File tree

6 files changed

+205
-12
lines changed

6 files changed

+205
-12
lines changed

docs/index.html

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Neovim Config Documentation</title>
8+
<style>
9+
body {
10+
font-family: monospace, sans-serif;
11+
background: #1e1e2e;
12+
color: #cdd6f4;
13+
margin: 2rem;
14+
}
15+
16+
h1,
17+
h2 {
18+
color: #89b4fa;
19+
}
20+
21+
a {
22+
color: #f38ba8;
23+
text-decoration: none;
24+
}
25+
26+
pre {
27+
background: #313244;
28+
padding: 1rem;
29+
border-radius: 6px;
30+
overflow-x: auto;
31+
}
32+
</style>
33+
</head>
34+
35+
<body>
36+
<h1>Welcome to My Neovim Config 🚀</h1>
37+
<p>This site documents my modular Neovim setup, plugins, and keymaps.</p>
38+
39+
<h2>📂 Repo</h2>
40+
<p><a href="https://github.com/USERNAME/REPO">View on GitHub</a></p>
41+
42+
<h2>⚡ Features</h2>
43+
<ul>
44+
<li>Modular Lua configs</li>
45+
<li>Plugin management with lazy.nvim</li>
46+
<li>Ergonomic keymaps for creative coding</li>
47+
</ul>
48+
49+
<h2>🛠 Installation</h2>
50+
<pre>
51+
git clone https://github.com/USERNAME/REPO ~/.config/nvim
52+
</pre>
53+
54+
<h2>📖 Documentation</h2>
55+
<p>
56+
See <a href="docs/index.html">full docs</a> for plugin breakdowns and
57+
workflow guides.
58+
</p>
59+
</body>
60+
61+
</html>

lazy-lock.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"snake.nvim": { "branch": "main", "commit": "c0bc2cfb0822f2aa8649baa0bf66910efc7b03f3" },
6060
"strudel.nvim": { "branch": "main", "commit": "a6b9752b0084a20c37786b54eef2095bb31daff7" },
6161
"styler.nvim": { "branch": "main", "commit": "d73d868541a2536a96d057c793d53c50e5f407bb" },
62+
"surrealdb.nvim": { "branch": "main", "commit": "80ae2beb7e1443902e89728dd876f1811f6839f3" },
6263
"tabout.nvim": { "branch": "master", "commit": "9a3499480a8e53dcaa665e2836f287e3b7764009" },
6364
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
6465
"telescope.nvim": { "branch": "master", "commit": "a8c2223ea6b185701090ccb1ebc7f4e41c4c9784" },

lua/plugins/extras.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ return {
4747
Build so much volume that there would be no option than to be successful.
4848
4949
50+
We do it even for those we never meet.
51+
(It is what makes us human, you know🤗)
52+
😀😁😇😚🤪🤑🤗🤭🫣🤫🤔🫡🤐🤨😶‍🌫️🫥😏😮‍💨🫨😴😪🤒🤮🥵🤯🥸😎🥹😭😤🥱😡😂🥰
5053
5154
5255

lua/plugins/mcp.lua

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
return {
2+
"ravitemer/mcphub.nvim",
3+
dependencies = {
4+
"nvim-lua/plenary.nvim",
5+
},
6+
build = "npm install -g mcp-hub@latest", -- Installs `mcp-hub` node binary globally
7+
config = function()
8+
require("mcphub").setup({
9+
--- `mcp-hub` binary related options-------------------
10+
config = vim.fn.expand("~/.config/mcphub/servers.json"), -- Absolute path to MCP Servers config file (will create if not exists)
11+
port = 37373, -- The port `mcp-hub` server listens to
12+
shutdown_delay = 5 * 60 * 000, -- Delay in ms before shutting down the server when last instance closes (default: 5 minutes)
13+
use_bundled_binary = false, -- Use local `mcp-hub` binary (set this to true when using build = "bundled_build.lua")
14+
mcp_request_timeout = 60000, --Max time allowed for a MCP tool or resource to execute in milliseconds, set longer for long running tasks
15+
global_env = {}, -- Global environment variables available to all MCP servers (can be a table or a function returning a table)
16+
workspace = {
17+
enabled = true, -- Enable project-local configuration files
18+
look_for = { ".mcphub/servers.json", ".vscode/mcp.json", ".cursor/mcp.json" }, -- Files to look for when detecting project boundaries (VS Code format supported)
19+
reload_on_dir_changed = true, -- Automatically switch hubs on DirChanged event
20+
port_range = { min = 40000, max = 41000 }, -- Port range for generating unique workspace ports
21+
get_port = nil, -- Optional function returning custom port number. Called when generating ports to allow custom port assignment logic
22+
},
23+
24+
---Chat-plugin related options-----------------
25+
auto_approve = false, -- Auto approve mcp tool calls
26+
auto_toggle_mcp_servers = true, -- Let LLMs start and stop MCP servers automatically
27+
extensions = {
28+
avante = {
29+
make_slash_commands = true, -- make /slash commands from MCP server prompts
30+
},
31+
},
32+
33+
--- Plugin specific options-------------------
34+
native_servers = {}, -- add your custom lua native servers here
35+
builtin_tools = {
36+
edit_file = {
37+
parser = {
38+
track_issues = true,
39+
extract_inline_content = true,
40+
},
41+
locator = {
42+
fuzzy_threshold = 0.8,
43+
enable_fuzzy_matching = true,
44+
},
45+
ui = {
46+
go_to_origin_on_complete = true,
47+
keybindings = {
48+
accept = ".",
49+
reject = ",",
50+
next = "n",
51+
prev = "p",
52+
accept_all = "ga",
53+
reject_all = "gr",
54+
},
55+
},
56+
},
57+
},
58+
ui = {
59+
window = {
60+
width = 0.8, -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
61+
height = 0.8, -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
62+
align = "center", -- "center", "top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"
63+
relative = "editor",
64+
zindex = 50,
65+
border = "rounded", -- "none", "single", "double", "rounded", "solid", "shadow"
66+
},
67+
wo = { -- window-scoped options (vim.wo)
68+
winhl = "Normal:MCPHubNormal,FloatBorder:MCPHubBorder",
69+
},
70+
},
71+
json_decode = nil, -- Custom JSON parser function (e.g., require('json5').parse for JSON5 support)
72+
on_ready = function(hub)
73+
-- Called when hub is ready
74+
end,
75+
on_error = function(err)
76+
-- Called on errors
77+
end,
78+
log = {
79+
level = vim.log.levels.WARN,
80+
to_file = false,
81+
file_path = nil,
82+
prefix = "MCPHub",
83+
},
84+
})
85+
end,
86+
}

lua/plugins/plugins.lua

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010
-- PLUGINS
1111

1212
return {
13-
require("plugins.ui"),
14-
require("plugins.colourscheme"),
15-
-- require("plugins.esp"),
16-
require("plugins.lsp"),
17-
require("plugins.completion"),
18-
require("plugins.snippets"),
19-
require("plugins.treesitter"),
20-
require("plugins.extras"),
21-
require("plugins.git"),
22-
require("plugins.telescope"),
23-
require("plugins.strudel"),
24-
-- require("plugins.keybinds"),
13+
require("plugins.ui"),
14+
require("plugins.colourscheme"),
15+
-- require("plugins.esp"),
16+
require("plugins.lsp"),
17+
require("plugins.completion"),
18+
require("plugins.snippets"),
19+
require("plugins.treesitter"),
20+
require("plugins.extras"),
21+
require("plugins.git"),
22+
require("plugins.telescope"),
23+
require("plugins.strudel"),
24+
-- require("plugins.keybinds"),
25+
-- require("plugins.surrealdb"),
26+
-- require("plugins.mcp"),
2527
}

lua/plugins/surrealdb.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
return {
2+
{
3+
"DariusCorvus/surrealdb.nvim",
4+
dependencies = { "nvim-treesitter" },
5+
config = function()
6+
require("surrealdb-nvim").setup({
7+
connection = {
8+
host = "http://localhost:8000/sql",
9+
ns = "test",
10+
db = "test",
11+
user = "root",
12+
pass = "root",
13+
},
14+
file = {
15+
extension = { "*.sdb", "*.surql", "*.sql" },
16+
run_on_safe = false,
17+
type = "sql",
18+
},
19+
keymaps = {
20+
{ "n", "<leader>5", ":SurrealDBRun buf<CR>" },
21+
{ "n", "<leader>5l", ":SurrealDBRun ln<CR>" },
22+
{ "v", "<leader>5", ":<C-U>SurrealDBRun sel<CR>" },
23+
},
24+
virtual_texts = {
25+
success = { "", "GreenSign" },
26+
fail = { "", "RedSign" },
27+
},
28+
output = {
29+
buf_name = "SurrealDB Response",
30+
split = "vertical",
31+
format_cmd = ":%!jq --indent 2",
32+
},
33+
scratchpad = {
34+
buf_name = "SurrealDB Scratchpad",
35+
split = "horizontal",
36+
},
37+
})
38+
end,
39+
},
40+
}

0 commit comments

Comments
 (0)