From 8e519e6e6ac7d929dee4aa6cf9bb67c8545e7499 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 31 May 2023 17:27:02 +0800 Subject: [PATCH] fix(projectmanager): skip empty buffer name --- lua/spacevim/plugin/projectmanager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/spacevim/plugin/projectmanager.lua b/lua/spacevim/plugin/projectmanager.lua index 5ce536507..523210f27 100644 --- a/lua/spacevim/plugin/projectmanager.lua +++ b/lua/spacevim/plugin/projectmanager.lua @@ -397,6 +397,8 @@ function M.current_root() or bufname:match('denite-filter') or bufname:match('%[defx%]') or bufname:match('^git://') -- this is for git.vim + or vim.fn.empty(bufname) == 1 + -- or bufname:match('^neo-tree') -- this is for git.vim then return end