38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkEnableOption mkIf readFile;
|
|
in
|
|
{
|
|
home-manager.users.moritz.programs.nixvim = {
|
|
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.dressing.enable = true;
|
|
# performance.combinePlugins.standalonePlugins = [ "copilot.lua" ];
|
|
};
|
|
age.secrets."openai".file = ../../../../secrets/openai.age;
|
|
age.secrets."openai".owner = "moritz";
|
|
}
|