Files
dotfiles/nvim/lua/config/extension.lua
d0zingcat b7376dbfa9 fix tree and chore
Signed-off-by: d0zingcat <leewtang@gmail.com>
2024-06-05 15:54:19 +08:00

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 })