neovim: Re-toggle the neo-tree sidebar when terminal is open

This commit is contained in:
Peter Cai 2022-08-08 15:18:04 -04:00
parent 34d4f6f109
commit 9f75d943b3
1 changed files with 8 additions and 0 deletions

View File

@ -95,6 +95,14 @@ return require('packer').startup(function(use)
winbar = {
enabled = false,
},
on_open = function()
-- Toggle the neo-tree file view such that it is
-- always full height; This is a dirty workaround
local manager = require('neo-tree.sources.manager')
if manager.close('filesystem') then
manager.show('filesystem')
end
end,
}) end,
}
end)