From 52c809efcd71956b8aee06ff5612e15491249d64 Mon Sep 17 00:00:00 2001 From: Ralph Date: Mon, 1 Apr 2024 00:28:38 -0700 Subject: [PATCH] removed unnecessary (seemingly) code --- lua/plugins/editor.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 0a683cf..41876df 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -10,14 +10,16 @@ return { { "E", "fE", desc = "Explorer NvimTree (cwd)", remap = true }, }, deactivate = function() require("nvim-tree.api").tree.close() end, -- or function() vim.cmd([[NvimTreeClose]]) end - init = function() - if vim.fn.argc(-1) == 1 then - local stat = vim.uv.fs_stat(vim.fn.argv(0)) - if stat and stat.type == "directory" then - require("nvim-tree") - end - end - end, + -- Note: Copied from LazyVim config for Neo-tree; commented since it doesn't seem to be necessary + -- + -- init = function() + -- if vim.fn.argc(-1) == 1 then + -- local stat = vim.uv.fs_stat(vim.fn.argv(0)) + -- if stat and stat.type == "directory" then + -- require("nvim-tree") + -- end + -- end + -- end, config = function() require("nvim-tree").setup() end,