···1313 require("neo-tree").setup({
1414 enable_git_status = true,
1515 enable_diagnostics = false,
1616+ position = "right",
1717+ filesystem = {
1818+ follow_current_file = {
1919+ enabled = true, -- This will find and focus the file in the active buffer every time
2020+ -- -- the current file is changed while the tree is open.
2121+ leave_dirs_open = true, -- `false` closes auto expanded dirs, such as with `:Neotree reveal`
2222+ },
2323+ },
1624 window = {
1725 mappings = {
1826 ["S"] = "open_vsplit",
···2230 ["h"] = function(state)
2331 local node = state.tree:get_node()
2432 if node.type == 'directory' and node:is_expanded() then
2525- require'neo-tree.sources.filesystem'.toggle_directory(state, node)
3333+ require 'neo-tree.sources.filesystem'.toggle_directory(state, node)
2634 else
2727- require'neo-tree.ui.renderer'.focus_node(state, node:get_parent_id())
3535+ require 'neo-tree.ui.renderer'.focus_node(state, node:get_parent_id())
2836 end
2937 end,
3038 ["l"] = function(state)
3139 local node = state.tree:get_node()
3240 if node.type == 'directory' then
3341 if not node:is_expanded() then
3434- require'neo-tree.sources.filesystem'.toggle_directory(state, node)
4242+ require 'neo-tree.sources.filesystem'.toggle_directory(state, node)
3543 elseif node:has_children() then
3636- require'neo-tree.ui.renderer'.focus_node(state, node:get_child_ids()[1])
4444+ require 'neo-tree.ui.renderer'.focus_node(state, node:get_child_ids()[1])
3745 end
3846 end
3947 end,