mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(neo-tree): add mapping "O" to open with system default
This commit is contained in:
parent
864c58cae6
commit
9b86dca4ee
1 changed files with 8 additions and 0 deletions
|
|
@ -69,6 +69,14 @@ return {
|
|||
end,
|
||||
desc = "copy path to clipboard",
|
||||
},
|
||||
["O"] = {
|
||||
command = function(state)
|
||||
local filepath = state.tree:get_node().path
|
||||
|
||||
os.execute("open " .. string.format("'%s'", filepath))
|
||||
end,
|
||||
desc = "open_with_system_defaults",
|
||||
},
|
||||
},
|
||||
},
|
||||
default_component_configs = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue