diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index a2ba5e35..e38a1961 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -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 = {