From 86c0c3694c93025dfec23f27266905c12f446a4e Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 22 Aug 2023 19:43:07 +0100 Subject: Initial commit --- .config/nvim/lua/pluginsconfig/nvim-tree.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/nvim/lua/pluginsconfig/nvim-tree.lua (limited to '.config/nvim/lua/pluginsconfig/nvim-tree.lua') diff --git a/.config/nvim/lua/pluginsconfig/nvim-tree.lua b/.config/nvim/lua/pluginsconfig/nvim-tree.lua new file mode 100644 index 0000000..71ebbf2 --- /dev/null +++ b/.config/nvim/lua/pluginsconfig/nvim-tree.lua @@ -0,0 +1,10 @@ +local autocmd = vim.api.nvim_create_autocmd -- Create autocommand + +Close nvim-tree if last window remaining +autocmd('BufEnter', { + pattern = '*', + command = 'if (winnr("$") ==1 && &filetype == "nvimtree") | q | endif' +}) + +require('nvim-tree').setup { +} -- cgit v1.2.3