mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 23:16:47 +00:00
11 lines
283 B
Lua
11 lines
283 B
Lua
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', '<leader>of', ':lua OpenFinder()<CR>', { noremap = true, silent = true })
|