Fork and customize config

This commit is contained in:
Garrett Dawson 2023-03-18 22:47:34 -06:00
parent 4a37a0a9b1
commit e137556250
6 changed files with 155 additions and 35 deletions

View file

@ -0,0 +1,20 @@
-- RevealInFinder
-- ---------------------------------------------------------------------------
-- set this to leader-e
vim.cmd([[
function! s:RevealInFinder()
if filereadable(expand("%"))
let l:command = "open -R %"
elseif getftype(expand("%:p:h")) == "dir"
let l:command = "open %:p:h"
else
let l:command = "open ."
endif
execute ":silent! !" . l:command
redraw!
endfunction
command! Reveal call <SID>RevealInFinder()
]])
return {}