Compare commits

...

2 Commits

Author SHA1 Message Date
8036d54fcd wip: use copilot 2025-04-02 11:52:45 -04:00
e281fdb1d0 feat: add avante-nvim 2025-04-02 11:52:45 -04:00
4 changed files with 22 additions and 3 deletions

View File

@ -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": {

View File

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

View File

@ -667,3 +667,16 @@ dap.configurations.cs = {
end, end,
}, },
} }
require('copilot').setup();
require('avante').setup ({
provider = "copilot",
openai = {
model = "Claude Sonnet 3.7", -- 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)" eval "$(direnv hook zsh)"
export OPENAI_API_KEY="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"