mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/fzf-lua: use literalExpression
for keymaps
example
The example references `pkgs.coreutils`.
This commit is contained in:
parent
1c137a73f0
commit
09733a5539
1 changed files with 14 additions and 12 deletions
|
@ -84,20 +84,22 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
);
|
||||
description = "Keymaps for Fzf-Lua.";
|
||||
default = { };
|
||||
example = {
|
||||
"<leader>fg" = "live_grep";
|
||||
"<C-p>" = {
|
||||
action = "git_files";
|
||||
settings = {
|
||||
previewers.cat.cmd = "${pkgs.coreutils}/bin/cat";
|
||||
winopts.height = 0.5;
|
||||
};
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Fzf-Lua Git Files";
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
"<leader>fg" = "live_grep";
|
||||
"<C-p>" = {
|
||||
action = "git_files";
|
||||
settings = {
|
||||
previewers.cat.cmd = lib.getExe' pkgs.coreutils "cat";
|
||||
winopts.height = 0.5;
|
||||
};
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Fzf-Lua Git Files";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue