working version after update
This commit is contained in:
parent
a963cb7284
commit
00ed47465d
17 changed files with 288 additions and 158 deletions
|
|
@ -1,11 +1,12 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"3rd/image.nvim",
|
||||
},
|
||||
cmd = "Neotree",
|
||||
keys = {
|
||||
{
|
||||
|
|
@ -22,6 +23,7 @@ return {
|
|||
{ "<C-n>", "<cmd>Neotree toggle<cr>", desc = "Toggle Explorer" }
|
||||
},
|
||||
init = function() vim.g.neo_tree_remove_legacy_commands = true end,
|
||||
|
||||
opts = {
|
||||
auto_clean_after_session_restore = true,
|
||||
close_if_last_window = true,
|
||||
|
|
@ -30,7 +32,6 @@ return {
|
|||
content_layout = "center",
|
||||
},
|
||||
commands = {
|
||||
--[[ system_open = function(state) require("astronvim.utils").system_open(state.tree:get_node():get_id()) end, ]]
|
||||
parent_or_close = function(state)
|
||||
local node = state.tree:get_node()
|
||||
if (node.type == "directory" or node:has_children()) and node:is_expanded() then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue