mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +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,12 +84,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
);
|
);
|
||||||
description = "Keymaps for Fzf-Lua.";
|
description = "Keymaps for Fzf-Lua.";
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = lib.literalExpression ''
|
||||||
|
{
|
||||||
"<leader>fg" = "live_grep";
|
"<leader>fg" = "live_grep";
|
||||||
"<C-p>" = {
|
"<C-p>" = {
|
||||||
action = "git_files";
|
action = "git_files";
|
||||||
settings = {
|
settings = {
|
||||||
previewers.cat.cmd = "${pkgs.coreutils}/bin/cat";
|
previewers.cat.cmd = lib.getExe' pkgs.coreutils "cat";
|
||||||
winopts.height = 0.5;
|
winopts.height = 0.5;
|
||||||
};
|
};
|
||||||
options = {
|
options = {
|
||||||
|
@ -98,6 +99,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue