wip: use copilot
This commit is contained in:
parent
e281fdb1d0
commit
8036d54fcd
@ -136,6 +136,7 @@
|
|||||||
custom-neovim = nvim;
|
custom-neovim = nvim;
|
||||||
lorri = unstablePkgs.lorri;
|
lorri = unstablePkgs.lorri;
|
||||||
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
|
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
|
||||||
|
copilot-lua = unstablePkgs.vimPlugins.copilot-lua;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
programs = with pkgs; {
|
programs = with pkgs; {
|
||||||
@ -149,6 +150,7 @@ ${builtins.readFile ./init.lua}
|
|||||||
EOF";
|
EOF";
|
||||||
packages.myVimPackage = {
|
packages.myVimPackage = {
|
||||||
start = (with pkgs.vimPlugins; [
|
start = (with pkgs.vimPlugins; [
|
||||||
|
copilot-lua
|
||||||
avante-nvim
|
avante-nvim
|
||||||
vim-sile
|
vim-sile
|
||||||
nvim-tree-lua
|
nvim-tree-lua
|
||||||
|
@ -668,11 +668,12 @@ dap.configurations.cs = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require('copilot').setup();
|
||||||
|
|
||||||
require('avante').setup ({
|
require('avante').setup ({
|
||||||
provider = "openai",
|
provider = "copilot",
|
||||||
openai = {
|
openai = {
|
||||||
endpoint = "https://api.openai.com/v1",
|
model = "Claude Sonnet 3.7", -- your desired model (or use gpt-4o, etc.)
|
||||||
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
|
|
||||||
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
|
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
|
||||||
temperature = 0,
|
temperature = 0,
|
||||||
max_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
|
max_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user