mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-23 02:12:24 +00:00
Merge branch 'main' into add-mini-nvim
This commit is contained in:
commit
9e38d00f1f
7 changed files with 84 additions and 1 deletions
|
@ -101,6 +101,7 @@
|
||||||
- `mini.test`
|
- `mini.test`
|
||||||
- `mini.trailspace`
|
- `mini.trailspace`
|
||||||
- `mini.visits`
|
- `mini.visits`
|
||||||
|
- Add [fzf-lua](https://github.com/ibhagwan/fzf-lua) in `vim.fzf-lua`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -599,6 +599,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-fzf-lua": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1737131132,
|
||||||
|
"narHash": "sha256-0IdADUsIr+SZ0ort92jPPfGIH1EdcwELYz+TCmDCPPI=",
|
||||||
|
"owner": "ibhagwan",
|
||||||
|
"repo": "fzf-lua",
|
||||||
|
"rev": "fbe21aeb147b3dc8b188b5753a8e288ecedcee5e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ibhagwan",
|
||||||
|
"repo": "fzf-lua",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-gesture-nvim": {
|
"plugin-gesture-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2767,6 +2783,7 @@
|
||||||
"plugin-fidget-nvim": "plugin-fidget-nvim",
|
"plugin-fidget-nvim": "plugin-fidget-nvim",
|
||||||
"plugin-flutter-tools": "plugin-flutter-tools",
|
"plugin-flutter-tools": "plugin-flutter-tools",
|
||||||
"plugin-friendly-snippets": "plugin-friendly-snippets",
|
"plugin-friendly-snippets": "plugin-friendly-snippets",
|
||||||
|
"plugin-fzf-lua": "plugin-fzf-lua",
|
||||||
"plugin-gesture-nvim": "plugin-gesture-nvim",
|
"plugin-gesture-nvim": "plugin-gesture-nvim",
|
||||||
"plugin-gitsigns-nvim": "plugin-gitsigns-nvim",
|
"plugin-gitsigns-nvim": "plugin-gitsigns-nvim",
|
||||||
"plugin-glow-nvim": "plugin-glow-nvim",
|
"plugin-glow-nvim": "plugin-glow-nvim",
|
||||||
|
|
|
@ -236,12 +236,17 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Telescope
|
# Pickers
|
||||||
plugin-telescope = {
|
plugin-telescope = {
|
||||||
url = "github:nvim-telescope/telescope.nvim";
|
url = "github:nvim-telescope/telescope.nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-fzf-lua = {
|
||||||
|
url = "github:ibhagwan/fzf-lua";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Runners
|
# Runners
|
||||||
plugin-run-nvim = {
|
plugin-run-nvim = {
|
||||||
url = "github:diniamo/run.nvim";
|
url = "github:diniamo/run.nvim";
|
||||||
|
|
|
@ -14,5 +14,6 @@
|
||||||
./wakatime
|
./wakatime
|
||||||
./surround
|
./surround
|
||||||
./preview
|
./preview
|
||||||
|
./fzf-lua
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
16
modules/plugins/utility/fzf-lua/config.nix
Normal file
16
modules/plugins/utility/fzf-lua/config.nix
Normal 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;};
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/utility/fzf-lua/default.nix
Normal file
6
modules/plugins/utility/fzf-lua/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./fzf-lua.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
37
modules/plugins/utility/fzf-lua/fzf-lua.nix
Normal file
37
modules/plugins/utility/fzf-lua/fzf-lua.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue