hunk
URL: https://github.com/julienvincent/hunk.nvim/
Maintainers: Jalil David Salamé Messina
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.
plugins.hunk.enable
Whether to enable hunk.nvim.
Type: boolean
Default:
false
Example:
true
Declared by:
plugins.hunk.package
The hunk.nvim package to use.
Type: package
Default:
pkgs.vimPlugins.hunk-nvim
Declared by:
plugins.hunk.autoLoad
Whether to automatically load hunk.nvim when neovim starts.
Type: boolean
Default:
false
when lazy-loading is enabled.
Example:
false
Declared by:
plugins.hunk.settings
Options provided to the require('hunk').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
hooks = {
on_diff_mount = lib.nixvim.mkRaw ''
---@param _context { buf: number, win: number }
function(_context) end
'';
on_tree_mount = lib.nixvim.mkRaw ''
---@param _context { buf: number, tree: NuiTree, opts: table }
function(_context) end
'';
};
keys = {
global = {
quit = [
"x"
];
};
};
ui = {
layout = "horizontal";
tree = {
mode = "flat";
width = 40;
};
};
}
Declared by: