Files
dotfiles/nvim.bak/lua/config/extension.lua
d0zingcat d4d819083c switch to lazyvim
Signed-off-by: d0zingcat <lee.w.tang@gmail.com>
2025-02-22 23:42:29 +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 })