mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
supermaven-nvim: fixes
This commit is contained in:
parent
2317cba854
commit
b86e7d157d
4 changed files with 11 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
./chatgpt
|
./chatgpt
|
||||||
./copilot
|
./copilot
|
||||||
./codecompanion
|
./codecompanion
|
||||||
./supermaven
|
./supermaven-nvim
|
||||||
./avante
|
./avante
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
|
@ -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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue