Files
nvim/lua/plugins/default/neotree.lua

23 lines
457 B
Lua
Raw Normal View History

2025-05-13 19:37:28 +10:00
return {
{
"nvim-neo-tree/neo-tree.nvim",
lazy = true,
opts = {
filesystem = {
window = {
mappings = {
["o"] = "system_open",
},
},
commands = {
system_open = function(state)
local node = state.tree:get_node()
local path = node:get_id()
vim.api.nvim_command("silent !open -g " .. path)
end,
},
},
},
},
}