Remove nvim-tree

This commit is contained in:
2023-12-17 23:23:09 +01:00
parent 459391a82c
commit aa415ec76c
4 changed files with 0 additions and 95 deletions
-13
View File
@@ -14,16 +14,3 @@
limitations under the License.
]]
local function open_file_tree()
local ok, mod = pcall(require, "nvim-tree.api")
if ok then
-- get current window id
local win = vim.api.nvim_get_current_win()
-- open NvimTree
mod.tree.open()
-- switch back focus to previous window
vim.api.nvim_set_current_win(win)
end
end
vim.api.nvim_create_autocmd("VimEnter", { callback = open_file_tree, })