neovim: Re-toggle the neo-tree sidebar when terminal is open
This commit is contained in:
parent
34d4f6f109
commit
9f75d943b3
|
@ -95,6 +95,14 @@ return require('packer').startup(function(use)
|
||||||
winbar = {
|
winbar = {
|
||||||
enabled = false,
|
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,
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue