From 9f75d943b3adb87a74dca3bc9a5a08567d11ef49 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 8 Aug 2022 15:18:04 -0400 Subject: [PATCH] neovim: Re-toggle the neo-tree sidebar when terminal is open --- nvim/.config/nvim/lua/plugins.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 4d0ec50..8c9d1e2 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -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)