Merge branch 'main' into add-mini-nvim

This commit is contained in:
raf 2025-01-19 12:39:20 +03:00 committed by GitHub
commit 9e38d00f1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 84 additions and 1 deletions

View file

@ -14,5 +14,6 @@
./wakatime
./surround
./preview
./fzf-lua
];
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.fzf-lua;
in {
vim.lazy.plugins."fzf-lua" = mkIf cfg.enable {
package = "fzf-lua";
cmd = ["FzfLua"];
setupModule = "fzf-lua";
setupOpts = cfg.setupOpts // {"@1" = cfg.profile;};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./fzf-lua.nix
./config.nix
];
}

View file

@ -0,0 +1,37 @@
{
config,
lib,
...
}: let
inherit (lib.types) nullOr enum;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption borderType;
in {
options.vim.fzf-lua = {
enable = mkEnableOption "fzf-lua";
setupOpts = mkPluginSetupOption "fzf-lua" {
winopts.border = mkOption {
type = borderType;
default = config.vim.ui.borders.globalStyle;
description = "Border type for the fzf-lua picker window";
};
};
profile = mkOption {
type = enum [
"default"
"default-title"
"fzf-native"
"fzf-tmux"
"fzf-vim"
"max-perf"
"telescope"
"skim"
"borderless"
"borderless-full"
"border-fused"
];
default = "default";
description = "The configuration profile to use";
};
};
}