nix-community.nixvim/tests/test-sources/plugins/utils/fzf-lua.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-08 16:34:34 +07:00
{
empty = {
plugins.fzf-lua.enable = true;
};
example = {
plugins.fzf-lua = {
enable = true;
profile = "telescope";
keymaps = {
"<Leader>ff" = {
action = "files";
settings = {
cwd = "~/Github";
winopts = {
height = 0.1;
width = 0.5;
};
};
options.silent = true;
};
"<Leader>fg" = "live_grep";
"<C-x><C-f>" = {
mode = "i";
action = "complete_file";
settings = {
cmd = "rg --files";
winopts.preview.hidden = "nohidden";
};
options = {
silent = true;
desc = "Fuzzy complete file";
};
};
};
settings = {
grep = {
prompt = "Grep ";
};
winopts = {
height = 0.4;
width = 0.93;
row = 0.99;
col = 0.3;
};
files = {
find_opts.__raw = "[[-type f -not -path '*.git/objects*' -not -path '*.env*']]";
prompt = "Files ";
multiprocess = true;
file_icons = true;
color_icons = true;
};
};
};
};
}