Files
dotfiles/nvim/lua/config/extension.lua
d0zingcat 7c98cab801 add lsp
Signed-off-by: d0zingcat <leewtang@gmail.com>
2024-06-14 23:41:44 +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 })