function GetPath() vim.fn.setreg('+', vim.fn.getreg('%')) end function OpenFinder() local current_path = vim.fn.expand('%:p:h') vim.cmd('!open ' .. current_path) end vim.api.nvim_set_keymap('n', 'of', ':lua OpenFinder()', { noremap = true, silent = true })