From b8f1da5ea149068ba3aae66685b64c251ad45461 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 9 Mar 2026 08:02:53 +0100 Subject: Neovim: Nerdtree wird nicht weiter beim Start geladen --- nvim/lua/config/autocmds.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'nvim/lua/config/autocmds.lua') diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index a4ce4ae..b07f9ce 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua @@ -14,22 +14,6 @@ vim.api.nvim_create_autocmd("FileType", { callback = enable_treesitter_features, }) --- https://github.com/nvim-tree/nvim-tree.lua/wiki/Open-At-Startup -vim.api.nvim_create_autocmd("VimEnter", { - callback = function(data) - -- buffer is a real file on the disk - local real_file = vim.fn.filereadable(data.file) == 1 - - -- buffer is a [No Name] - local no_name = data.file == "" and vim.bo[data.buf].buftype == "" - - if not real_file and not no_name then return end - - -- open the tree, find the file but don't focus it - require("nvim-tree.api").tree.toggle({ focus = false, find_file = true }) - end, -}) - -- https://github.com/nvim-tree/nvim-tree.lua/wiki/Auto-Close vim.api.nvim_create_autocmd("QuitPre", { callback = function() -- cgit v1.3