supermaven-nvim: fixes

This commit is contained in:
Devin Droddy 2025-07-05 11:08:15 -04:00
commit b86e7d157d
No known key found for this signature in database
4 changed files with 11 additions and 6 deletions

View file

@ -3,7 +3,7 @@
./chatgpt ./chatgpt
./copilot ./copilot
./codecompanion ./codecompanion
./supermaven ./supermaven-nvim
./avante ./avante
]; ];
} }

View file

@ -3,10 +3,10 @@
lib, lib,
... ...
}: let }: let
cfg = config.vim.assistant.supermaven; cfg = config.vim.assistant.supermaven-nvim;
in { in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
vim.plugins = { vim.lazy.plugins = {
supermaven-nvim = { supermaven-nvim = {
package = "supermaven-nvim"; package = "supermaven-nvim";
setupModule = "supermaven-nvim"; setupModule = "supermaven-nvim";

View file

@ -1,7 +1,8 @@
{lib, ...}: let {lib, ...}: let
inherit (lib) mkOption mkEnableOption types; inherit (lib) types;
inherit (lib.options) mkOption mkEnableOption;
in { in {
options.vim.assistant.supermaven = { options.vim.assistant.supermaven-nvim = {
enable = mkEnableOption "Supermaven AI assistant"; enable = mkEnableOption "Supermaven AI assistant";
setupOpts = lib.nvim.types.mkPluginSetupOption "Supermaven" { setupOpts = lib.nvim.types.mkPluginSetupOption "Supermaven" {
@ -75,7 +76,11 @@ in {
condition = mkOption { condition = mkOption {
type = types.nullOr lib.nvim.types.luaInline; type = types.nullOr lib.nvim.types.luaInline;
default = null; default = null;
description = "Condition function to check for stopping supermaven. A returned `true` means to stop supermaven"; description = ''
Condition function to check for stopping supermaven.
A returned `true` means to stop supermaven
'';
}; };
}; };
}; };