wip: using custom-flakes implementation
This commit is contained in:
parent
48ee2d8c65
commit
5d83dc80bf
23
nix/base-system/flake.lock
generated
23
nix/base-system/flake.lock
generated
@ -20,6 +20,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"avante-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1746602870,
|
||||||
|
"narHash": "sha256-REBOplEe2muqfVLwcpTAmXpTrHlzSfhbh8T0litDTDA=",
|
||||||
|
"owner": "yetone",
|
||||||
|
"repo": "avante.nvim",
|
||||||
|
"rev": "113913355a6b9c0fbd62cf52d0cf3e5671d0e34a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "yetone",
|
||||||
|
"repo": "avante.nvim",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"clio-flake": {
|
"clio-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
@ -46,6 +62,7 @@
|
|||||||
},
|
},
|
||||||
"custom-flakes": {
|
"custom-flakes": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"avante-src": "avante-src",
|
||||||
"d2-vim-src": "d2-vim-src",
|
"d2-vim-src": "d2-vim-src",
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_3",
|
||||||
"gomod2nix-src": "gomod2nix-src",
|
"gomod2nix-src": "gomod2nix-src",
|
||||||
@ -67,11 +84,11 @@
|
|||||||
"zig-src": "zig-src"
|
"zig-src": "zig-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746458473,
|
"lastModified": 1746633381,
|
||||||
"narHash": "sha256-3FFhJ18MJFlHHI1YaMKRwXURcQjmLenxIcLFtr+CjGI=",
|
"narHash": "sha256-9Vgnz0/Myw+XdZUxNWYhfdfRzz1SSDQIFjrhaXFcJpk=",
|
||||||
"owner": "zaphar",
|
"owner": "zaphar",
|
||||||
"repo": "nix-flakes",
|
"repo": "nix-flakes",
|
||||||
"rev": "91588e10769e706024d8d03ebb4958c89e00c264",
|
"rev": "30a4fb242f5e6542b842be1972d953d20945ed7a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -90,6 +90,7 @@
|
|||||||
vimModule = system: let
|
vimModule = system: let
|
||||||
nil-pkg = nil-flake.packages."${system}".default;
|
nil-pkg = nil-flake.packages."${system}".default;
|
||||||
mcp-hub-binary = custom-flakes.packages."${system}".mcp-hub;
|
mcp-hub-binary = custom-flakes.packages."${system}".mcp-hub;
|
||||||
|
notion-mcp-server = custom-flakes.packages."${system}".notion-mcp-server;
|
||||||
in
|
in
|
||||||
{ config, pkgs, ...}: let
|
{ config, pkgs, ...}: let
|
||||||
unstablePkgs = import unstable { inherit system; };
|
unstablePkgs = import unstable { inherit system; };
|
||||||
@ -139,7 +140,7 @@
|
|||||||
(final: prev: {
|
(final: prev: {
|
||||||
custom-neovim = nvim;
|
custom-neovim = nvim;
|
||||||
lorri = unstablePkgs.lorri;
|
lorri = unstablePkgs.lorri;
|
||||||
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
|
our-avante-nvim = custom-flakes.packages."${system}".avante-nvim;
|
||||||
copilot-lua = unstablePkgs.vimPlugins.copilot-lua;
|
copilot-lua = unstablePkgs.vimPlugins.copilot-lua;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
@ -155,7 +156,7 @@ EOF";
|
|||||||
packages.myVimPackage = {
|
packages.myVimPackage = {
|
||||||
start = (with pkgs.vimPlugins; [
|
start = (with pkgs.vimPlugins; [
|
||||||
copilot-lua
|
copilot-lua
|
||||||
avante-nvim
|
our-avante-nvim
|
||||||
vim-sile
|
vim-sile
|
||||||
nvim-tree-lua
|
nvim-tree-lua
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
@ -251,6 +252,7 @@ EOF";
|
|||||||
devenv
|
devenv
|
||||||
unstablePkgs.fq
|
unstablePkgs.fq
|
||||||
mcp-hub-binary
|
mcp-hub-binary
|
||||||
|
notion-mcp-server
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -678,7 +678,7 @@ local mcphub = require("mcphub")
|
|||||||
mcphub.setup({
|
mcphub.setup({
|
||||||
-- This sets vim.g.mcphub_auto_approve to false by default (can also be toggled from the HUB UI with `ga`)
|
-- This sets vim.g.mcphub_auto_approve to false by default (can also be toggled from the HUB UI with `ga`)
|
||||||
config = vim.fn.expand("~/.config/mcphub/servers.json"),
|
config = vim.fn.expand("~/.config/mcphub/servers.json"),
|
||||||
auto_approve = false,
|
auto_approve = true,
|
||||||
auto_toggle_mcp_servers = true, -- Let LLMs start and stop MCP servers automatically
|
auto_toggle_mcp_servers = true, -- Let LLMs start and stop MCP servers automatically
|
||||||
extensions = {
|
extensions = {
|
||||||
avante = {
|
avante = {
|
||||||
@ -695,6 +695,7 @@ require('copilot').setup();
|
|||||||
require('avante').setup ({
|
require('avante').setup ({
|
||||||
provider = "claude",
|
provider = "claude",
|
||||||
mode = "agentic",
|
mode = "agentic",
|
||||||
|
--debug = true,
|
||||||
cursor_applying_provider = nil, -- default to whatever provide is configured
|
cursor_applying_provider = nil, -- default to whatever provide is configured
|
||||||
claude = {
|
claude = {
|
||||||
endpoint = "https://api.anthropic.com",
|
endpoint = "https://api.anthropic.com",
|
||||||
@ -703,12 +704,27 @@ require('avante').setup ({
|
|||||||
temperature = 0,
|
temperature = 0,
|
||||||
max_tokens = 20480,
|
max_tokens = 20480,
|
||||||
},
|
},
|
||||||
|
rag_service = {
|
||||||
|
enabled = false,
|
||||||
|
host_mount = os.getenv("HOME"), -- Host mount path for the rag service
|
||||||
|
provider = "ollama", -- The provider to use for RAG service (e.g. openai or ollama)
|
||||||
|
llm_model = "llama3", -- The LLM model to use for RAG service
|
||||||
|
embed_model = "", -- The embedding model to use for RAG service
|
||||||
|
endpoint = "http://localhost:11434", -- The API endpoint for RAG service
|
||||||
|
},
|
||||||
behavior = {
|
behavior = {
|
||||||
enable_cursor_planning_mode = true,
|
enable_cursor_planning_mode = true,
|
||||||
},
|
},
|
||||||
--system_prompt = hub_instance:get_active_servers_prompt(),
|
system_prompt = function()
|
||||||
|
local hub = require("mcphub").get_hub_instance()
|
||||||
|
return hub and hub:get_active_servers_prompt() or ""
|
||||||
|
end,
|
||||||
-- Using function prevents requiring mcphub before it's loaded
|
-- Using function prevents requiring mcphub before it's loaded
|
||||||
custom_tools = require("mcphub.extensions.avante").mcp_tool(),
|
custom_tools = function()
|
||||||
|
return {
|
||||||
|
require("mcphub.extensions.avante").mcp_tool(),
|
||||||
|
}
|
||||||
|
end,
|
||||||
-- Disable these because we'll use the mcphub versions instead
|
-- Disable these because we'll use the mcphub versions instead
|
||||||
disabled_tools = {
|
disabled_tools = {
|
||||||
"list_files", -- Built-in file operations
|
"list_files", -- Built-in file operations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user