mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-30 23:55:15 +02:00
plugins/fzf-lua: init
This commit is contained in:
parent
375453feff
commit
5a744a7006
3 changed files with 200 additions and 0 deletions
57
tests/test-sources/plugins/utils/fzf-lua.nix
Normal file
57
tests/test-sources/plugins/utils/fzf-lua.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
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.10;
|
||||
width = 0.50;
|
||||
};
|
||||
};
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue