1 -- A tool for splitting diffs in Neovim
 
   2 -- A lot of commands in jujutsu allow you to select parts of a diff.
 
   3 -- The tool used to select the diff can be configured via their ui.diff-editor config option.
 
   4 -- To use hunk.nvim add the following to your jujutsu config.toml:
 
   7 -- diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
 
   9 -- https://github.com/julienvincent/hunk.nvim
 
  14                 require("hunk").setup({
 
  18                                         accept = { "<leader><Cr>" },
 
  19                                         focus_tree = { "<leader>e" },
 
  23                                         expand_node = { "l", "<Right>" },
 
  24                                         collapse_node = { "h", "<Left>" },
 
  26                                         open_file = { "<Cr>" },
 
  28                                         toggle_file = { "a" },
 
  32                                         toggle_hunk = { "A" },
 
  33                                         toggle_line = { "a" },
 
  34                                         -- This is like toggle_line but it will also toggle the line on the other
 
  35                                         -- 'side' of the diff.
 
  36                                         toggle_line_pair = { "s" },
 
  41                                         -- Jump between the left and right diff view
 
  42                                         toggle_focus = { "<Tab>" },
 
  48                                         -- Mode can either be `nested` or `flat`
 
  52                                 --- Can be either `vertical` or `horizontal`
 
  59                                 partially_selected = "",
 
  65                         -- Called right after each window and buffer are created.
 
  67                                 ---@param _context { buf: number, tree: NuiTree, opts: table }
 
  68                                 on_tree_mount = function(_context) end,
 
  69                                 ---@param _context { buf: number, win: number }
 
  70                                 on_diff_mount = function(_context) end,