diffview.nvim icon indicating copy to clipboard operation
diffview.nvim copied to clipboard

Feature: A configuation setting to hide the files panel by default

Open mangelozzi opened this issue 2 years ago • 2 comments

I have refered to :h diffview-config-view.x.layout and looked at the config, but there is no setting to disable the file panel by default.

As far as I can see a reasonable way is to create a hook when DiffView opens, and then run:

    hooks = { -- See ':h diffview-config-hooks'
        view_opened = function()
            require("diffview.actions").toggle_files()
        end,
    },         

mangelozzi avatar Feb 13 '23 09:02 mangelozzi

Thanks for sharing the hook solution @mangelozzi. I was wrangling my mind trying to figure a way to do this.

kagbodji avatar Mar 23 '23 14:03 kagbodji

Works great but there is a flicker when start starting diffview now.

sathishmanohar avatar Apr 01 '23 09:04 sathishmanohar