mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-24 09:51:00 +01:00
plugins/fff: init
This commit is contained in:
parent
ce54d127b7
commit
f6d91b87e3
2 changed files with 156 additions and 0 deletions
36
plugins/by-name/fff/default.nix
Normal file
36
plugins/by-name/fff/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "fff";
|
||||
package = "fff-nvim";
|
||||
description = "A fast fuzzy file finder.";
|
||||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
settingsExample = {
|
||||
base_path = lib.nixvim.nestedLiteralLua "vim.fn.getcwd()";
|
||||
max_results = 100;
|
||||
layout = {
|
||||
height = 0.8;
|
||||
width = 0.8;
|
||||
preview_position = "right";
|
||||
};
|
||||
key_bindings = {
|
||||
close = [
|
||||
"<Esc>"
|
||||
"<C-c>"
|
||||
];
|
||||
select_file = "<CR>";
|
||||
open_split = "<C-s>";
|
||||
open_vsplit = "<C-v>";
|
||||
open_tab = "<C-t>";
|
||||
move_up = [
|
||||
"<Up>"
|
||||
"<C-p>"
|
||||
];
|
||||
move_down = [
|
||||
"<Down>"
|
||||
"<C-n>"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue