24 lines
503 B
Lua
24 lines
503 B
Lua
return {
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
opts = {
|
|
window = {
|
|
width = 40,
|
|
},
|
|
filesystem = {
|
|
window = {
|
|
mappings = {
|
|
["<C-l>"] = function(state)
|
|
local node = state.tree:get_node()
|
|
|
|
if vim.fn.fnamemodify(node.path, ":e") == "opto" then
|
|
vim.cmd.Optolith()
|
|
return
|
|
end
|
|
|
|
os.execute(string.format('xdg-open "%s" &> /dev/null &', node.path))
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|