mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 07:26:44 +00:00
10
nvim/lua/config/extension.lua
Normal file
10
nvim/lua/config/extension.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
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 })
|
||||
|
||||
Reference in New Issue
Block a user