sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.74k stars 105 forks source link

Add configuration to select layouts to cycle through #336

Open sathishmanohar opened 1 year ago

sathishmanohar commented 1 year ago

Currently selecting the default layout is configurable via

merge_tool = {
      layout = "diff3_horizontal",
    },

When we cycle through layout we cycle through all available layouts. It would be great if I can select which layouts I want to cycle through by a config option. I don't know. Something like would be great.

merge_tool = {
      layout = "diff1_plain",
      selected_layouts = { "diff1_plain", "diff3_vertical", "diff3_mixed", "diff4_mixed" }
    },