mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-23 13:01:03 +00:00
removed unnecessary (seemingly) code
This commit is contained in:
parent
8a735e4453
commit
52c809efcd
1 changed files with 10 additions and 8 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue