Skip to content

Commit 24d329d

Browse files
committed
hide window when create
1 parent 9a64de8 commit 24d329d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/dired/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ UI.Window = {
283283
row = config.row,
284284
col = config.col,
285285
border = 'rounded',
286+
hide = true,
286287
})
287288
vim.bo[buf].buftype = 'nofile'
288289
vim.bo[buf].bufhidden = 'wipe'
@@ -676,6 +677,7 @@ Browser.refresh = function(state, path)
676677
cfg.width = math.min(cfg.width, maxwidth + 8)
677678
cfg.col = math.floor((vim.o.columns - cfg.width) / 2)
678679
cfg.height = math.min(cfg.height, #collected_entries + 5)
680+
cfg.hide = false
679681
local curpath = vim.fs.basename(vim.fs.normalize(state.current_path))
680682
if not cfg.title then
681683
cfg.title = curpath

0 commit comments

Comments
 (0)