plugins/fzf-lua: use literalExpression for keymaps example

The example references `pkgs.coreutils`.
This commit is contained in:
Matt Sturgeon 2025-01-24 22:17:49 +00:00
parent 1c137a73f0
commit 09733a5539
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -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 {
}; };
}; };
}; };
'';
}; };
}; };