sindrets / diffview.nvim

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

How to remove this Breadcrumb when diff #393

Closed LintaoAmons closed 1 year ago

LintaoAmons commented 1 year ago
image
sindrets commented 1 year ago

Those bread crumbs are from a plugin you're using. Looks like lspsaga.nvim. You'll have to look to that plugin's docs to find out if you can configure its winbar.

Basically what you want to do is to disable the winbar in any window that has the 'diff' window option set.

Optionally you can enable winbars in all of diffview's buffers as well with these settings:

require("diffview").setup({
  view = {
    default = {
      winbar_info = true,
    },
    file_history = {
      winbar_info = true,
    },
  },
})
LintaoAmons commented 1 year ago

Thx~

Can I ask another question in this thread? I always want to use c to trigger commit pane. So how can I add a custom keybinding when I'm in Diffview buffer?

Like I can press S to Stage all I want to map some custom function to c