aboutsummaryrefslogtreecommitdiff
path: root/lua.lua
blob: 0750d6ca37591797b36c71f1797465491b610bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require("neo-tree").setup({
  window = {
    mappings = {
      ["<F5>"] = "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,
        },
      },
    },
  },
})