require("neo-tree").setup({ window = { mappings = { [""] = "refresh", ["o"] = "open", } }, filesystem = { window = { mappings = { ["O"] = { command = function(state) local node = state.tree:get_node() local cmd = "thunar '" .. node.path .. "'" .. " > /dev/null 2>&1" print("Opening: " .. node.path) -- Debug statement os.execute(cmd) end, }, }, }, }, })