removed unnecessary (seemingly) code

This commit is contained in:
Ralph 2024-04-01 00:28:38 -07:00
parent 8a735e4453
commit 52c809efcd

View file

@ -10,14 +10,16 @@ return {
{ "<leader>E", "<leader>fE", desc = "Explorer NvimTree (cwd)", remap = true }, { "<leader>E", "<leader>fE", desc = "Explorer NvimTree (cwd)", remap = true },
}, },
deactivate = function() require("nvim-tree.api").tree.close() end, -- or function() vim.cmd([[NvimTreeClose]]) end deactivate = function() require("nvim-tree.api").tree.close() end, -- or function() vim.cmd([[NvimTreeClose]]) end
init = function() -- Note: Copied from LazyVim config for Neo-tree; commented since it doesn't seem to be necessary
if vim.fn.argc(-1) == 1 then --
local stat = vim.uv.fs_stat(vim.fn.argv(0)) -- init = function()
if stat and stat.type == "directory" then -- if vim.fn.argc(-1) == 1 then
require("nvim-tree") -- local stat = vim.uv.fs_stat(vim.fn.argv(0))
end -- if stat and stat.type == "directory" then
end -- require("nvim-tree")
end, -- end
-- end
-- end,
config = function() config = function()
require("nvim-tree").setup() require("nvim-tree").setup()
end, end,