Merge branch 'main' into telescope-ext

This commit is contained in:
raf 2025-01-25 16:57:39 +03:00 committed by GitHub
commit 4b22740c9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
142 changed files with 2956 additions and 34 deletions

View file

@ -13,5 +13,8 @@
./surround
./telescope
./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";
};
};
}