1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/plugins/by-name/actions-preview/default.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

31 lines
974 B
Nix

{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "actions-preview";
package = "actions-preview-nvim";
description = "Fully customizable previewer for LSP code actions.";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsExample = {
telescope = {
sorting_strategy = "ascending";
layout_strategy = "vertical";
layout_config = {
width = 0.8;
height = 0.9;
prompt_position = "top";
preview_cutoff = 20;
preview_height = lib.nixvim.nestedLiteralLua ''
function(_, _, max_lines)
return max_lines - 15
end
'';
};
};
highlight_command = [
(lib.nixvim.nestedLiteralLua "require('actions-preview.highlight').delta 'delta --side-by-side'")
(lib.nixvim.nestedLiteralLua "require('actions-preview.highlight').diff_so_fancy()")
(lib.nixvim.nestedLiteralLua "require('actions-preview.highlight').diff_highlight()")
];
};
}