feat: add avante-nvim
This commit is contained in:
parent
485f7f38a1
commit
e281fdb1d0
6
nix/base-system/flake.lock
generated
6
nix/base-system/flake.lock
generated
@ -1690,11 +1690,11 @@
|
|||||||
},
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728279793,
|
"lastModified": 1742923925,
|
||||||
"narHash": "sha256-W3D5YpNrUVTFPVU4jiEiboaaUDShaiH5fRl9aJLqUnU=",
|
"narHash": "sha256-biPjLws6FiBVUUDHEMFq5pUQL84Wf7PntPYdo3oKkFw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f85a2d005e83542784a755ca8da112f4f65c4aa4",
|
"rev": "25d1b84f5c90632a623c48d83a2faf156451e6b1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -135,6 +135,7 @@
|
|||||||
(final: prev: {
|
(final: prev: {
|
||||||
custom-neovim = nvim;
|
custom-neovim = nvim;
|
||||||
lorri = unstablePkgs.lorri;
|
lorri = unstablePkgs.lorri;
|
||||||
|
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
programs = with pkgs; {
|
programs = with pkgs; {
|
||||||
@ -148,6 +149,7 @@ ${builtins.readFile ./init.lua}
|
|||||||
EOF";
|
EOF";
|
||||||
packages.myVimPackage = {
|
packages.myVimPackage = {
|
||||||
start = (with pkgs.vimPlugins; [
|
start = (with pkgs.vimPlugins; [
|
||||||
|
avante-nvim
|
||||||
vim-sile
|
vim-sile
|
||||||
nvim-tree-lua
|
nvim-tree-lua
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
|
@ -667,3 +667,15 @@ dap.configurations.cs = {
|
|||||||
end,
|
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
|
||||||
|
},
|
||||||
|
})
|
||||||
|
@ -43,3 +43,5 @@ function disk_usage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
|
export OPENAI_API_KEY="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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user