diff --git a/flake.lock b/flake.lock index 16c64ca..2124742 100644 --- a/flake.lock +++ b/flake.lock @@ -656,11 +656,11 @@ "nixpkgs-nixcord": "nixpkgs-nixcord" }, "locked": { - "lastModified": 1775609538, - "narHash": "sha256-wuEAtQEyYLSTljliQJfCktlaougrr2x72AL3elomMe8=", + "lastModified": 1775668757, + "narHash": "sha256-IYgdtendCXbY0wbORVoD0pvxliF7TRaAPHUKQb7Hi9c=", "owner": "kaylorben", "repo": "nixcord", - "rev": "62128fa01d11c887437114248536438fd3add38d", + "rev": "b3816569255c0dbf3026e6ee95e42d16edcca6e1", "type": "github" }, "original": { diff --git a/home/neovim/avante.nix b/home/neovim/avante.nix index fd120e2..ffc4c09 100644 --- a/home/neovim/avante.nix +++ b/home/neovim/avante.nix @@ -2,16 +2,6 @@ { # Avante: AI-powered coding assistant (Cursor-like experience in Neovim) programs.nixvim = { - extraConfigLuaPre = '' - local groq_key_file = "/home/phil/.config/sops-nix/secrets/GROQ_API_KEY" - local f = io.open(groq_key_file, "r") - if f then - local key = f:read("*all"):gsub("%s+", "") -- read and trim whitespace - vim.env.GROQ_API_KEY = key - f:close() - end - ''; - plugins = { markdown-preview.enable = true; render-markdown.enable = true; @@ -29,7 +19,7 @@ __inherited_from = "openai"; api_key_name = "GROQ_API_KEY"; endpoint = "https://api.groq.com/openai/v1/"; - model = "groq/compound-mini"; + model = "llama-3.3-70b-versatile"; disable_tools = true; extra_request_body = { temperature = 1; diff --git a/home/neovim/which-key.nix b/home/neovim/which-key.nix index ade48c6..c40a339 100644 --- a/home/neovim/which-key.nix +++ b/home/neovim/which-key.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +_: { # Which-key: Display available keybindings in popup # Shows all possible key combinations after pressing leader or other prefix keys programs.nixvim.plugins.which-key = { @@ -85,7 +85,10 @@ disable = { builtin_keys = { # Hide these default vim keys from which-key - i = [ "" "" ]; + i = [ + "" + "" + ]; n = [ "" ]; }; };