1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-01 06:31:05 +01:00
nixvim/plugins/by-name/hunk/default.nix
Austin Horstman 8117ab9770 plugins/hunk: remove nui auto-enable
The nui-nvim dependency is bundled with the hunk-nvim derivation,
so there's no need to auto-enable `plugins.nui`.
2025-11-26 09:05:00 +00:00

44 lines
996 B
Nix

{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "hunk";
package = "hunk-nvim";
description = ''
A tool for splitting diffs in Neovim.
---
If you wish to display icons in the file tree you should enable either
`plugins.web-devicons` or `plugins.mini`. If using `plugins.mini`, you
must enable the `icons` module.
'';
maintainers = [ lib.maintainers.jalil-salame ];
settingsExample = {
keys.global.quit = [ "x" ];
ui = {
tree = {
mode = "flat";
width = 40;
};
layout = "horizontal";
};
hooks = {
on_tree_mount =
lib.nixvim.nestedLiteralLua # lua
''
---@param _context { buf: number, tree: NuiTree, opts: table }
function(_context) end
'';
on_diff_mount =
lib.nixvim.nestedLiteralLua # lua
''
---@param _context { buf: number, win: number }
function(_context) end
'';
};
};
}