chore: update flake
This commit is contained in:
parent
22a6b5156c
commit
87473baed4
8 changed files with 225 additions and 190 deletions
|
|
@ -5,28 +5,32 @@ let
|
|||
in
|
||||
{
|
||||
home-manager.users.moritz.programs.nixvim = {
|
||||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
pname = "avante.nvim";
|
||||
src = inputs.avante-nvim;
|
||||
version = lib.my.mkVersionInput inputs.avante-nvim;
|
||||
})
|
||||
pkgs.vimPlugins.nui-nvim
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
nui-nvim
|
||||
render-markdown-nvim
|
||||
avante-nvim
|
||||
];
|
||||
extraConfigLuaPost = ''
|
||||
require("render-markdown").setup({ file_types = {"markdown", "Avante"} })
|
||||
|
||||
require("avante_lib").load()
|
||||
require("avante").setup({
|
||||
provider = "openai",
|
||||
auto_suggestions_provider = "openai",
|
||||
behaviour = {
|
||||
auto_suggestions = true,
|
||||
},
|
||||
openai = {
|
||||
model = "gpt-4o",
|
||||
api_key_name = "cmd:cat /run/agenix/openai"
|
||||
}
|
||||
})
|
||||
'';
|
||||
plugins.copilot-lua.enable = true;
|
||||
plugins.copilot-lua.suggestion.enabled = false;
|
||||
plugins.copilot-lua.panel.enabled = false;
|
||||
# plugins.copilot-lua.enable = true;
|
||||
# plugins.copilot-lua.suggestion.enabled = false;
|
||||
# plugins.copilot-lua.panel.enabled = false;
|
||||
plugins.dressing.enable = true;
|
||||
performance.combinePlugins.standalonePlugins = [ "copilot.lua" ];
|
||||
# performance.combinePlugins.standalonePlugins = [ "copilot.lua" ];
|
||||
};
|
||||
age.secrets."openai".file = ../../../../secrets/openai.age;
|
||||
age.secrets."openai".owner = "moritz";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue