mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-22 04:23:28 +00:00
Adds fff.nvim, a high-performance Rust-backed file picker for Neovim with fuzzy search and frecency scoring. The Rust shared library is built from source via rustPlatform.buildRustPackage and symlinked into target/release/ where the plugin's lua loader expects it. Toggle with vim.utility.fff-nvim.enable; pass arbitrary fff.setup() options through vim.utility.fff-nvim.setupOpts.
25 lines
392 B
Nix
25 lines
392 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.utility.fff-nvim;
|
|
in {
|
|
vim.lazy.plugins."fff-nvim" = mkIf cfg.enable {
|
|
package = "fff-nvim";
|
|
setupModule = "fff";
|
|
inherit (cfg) setupOpts;
|
|
|
|
cmd = [
|
|
"FFFFind"
|
|
"FFFScan"
|
|
"FFFRefreshGit"
|
|
"FFFClearCache"
|
|
"FFFHealth"
|
|
"FFFDebug"
|
|
"FFFOpenLog"
|
|
];
|
|
};
|
|
}
|