neovim: Focus tree when empty buffer

This commit is contained in:
Donovan Glover 2023-06-06 07:39:59 -04:00
parent cf6064e500
commit 02dd4540e5
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -78,7 +78,7 @@
return
end
require("nvim-tree.api").tree.toggle({ focus = false, find_file = true })
require("nvim-tree.api").tree.toggle({ focus = no_name, find_file = true })
end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })