Skip to content

Commit

Permalink
fix(nvim): neo-tree open in finder
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jan 12, 2025
1 parent 8b11697 commit 1167fd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .config/nvim/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

lazy d1529f6

trouble lualine
- trouble lualine

## Issues

Expand Down
8 changes: 7 additions & 1 deletion .config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,13 @@ return {
mappings = {
["O"] = {
function(state)
require("lazy.util").open(state.tree:get_node().path, { system = true })
if vim.fn.has("macunix") == 1 then
local node = state.tree:get_node()
local path = node:get_id()
vim.fn.jobstart({ "open", "-R", path }, { detach = true })
else
vim.notify("Command not set up for OS")
end
end,
desc = "Open with System Application",
},
Expand Down

0 comments on commit 1167fd3

Please sign in to comment.