feat: add avante-nvim

This commit is contained in:
Jeremy Wall 2025-03-27 11:09:50 -04:00
parent 485f7f38a1
commit e281fdb1d0
4 changed files with 19 additions and 3 deletions

View File

@ -1690,11 +1690,11 @@
},
"unstable": {
"locked": {
"lastModified": 1728279793,
"narHash": "sha256-W3D5YpNrUVTFPVU4jiEiboaaUDShaiH5fRl9aJLqUnU=",
"lastModified": 1742923925,
"narHash": "sha256-biPjLws6FiBVUUDHEMFq5pUQL84Wf7PntPYdo3oKkFw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f85a2d005e83542784a755ca8da112f4f65c4aa4",
"rev": "25d1b84f5c90632a623c48d83a2faf156451e6b1",
"type": "github"
},
"original": {

View File

@ -135,6 +135,7 @@
(final: prev: {
custom-neovim = nvim;
lorri = unstablePkgs.lorri;
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
})
];
programs = with pkgs; {
@ -148,6 +149,7 @@ ${builtins.readFile ./init.lua}
EOF";
packages.myVimPackage = {
start = (with pkgs.vimPlugins; [
avante-nvim
vim-sile
nvim-tree-lua
nvim-lspconfig

View File

@ -667,3 +667,15 @@ dap.configurations.cs = {
end,
},
}
require('avante').setup ({
provider = "openai",
openai = {
endpoint = "https://api.openai.com/v1",
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
temperature = 0,
max_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
--reasoning_effort = "medium", -- low|medium|high, only used for reasoning models
},
})

View File

@ -43,3 +43,5 @@ function disk_usage() {
}
eval "$(direnv hook zsh)"
export OPENAI_API_KEY="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"