.config/nvim/plugin/tig.vim

Thu, 09 Mar 2023 12:45:11 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 09 Mar 2023 12:45:11 -0600
changeset 1073
911aa9d81e71
parent 1025
9dfc1a5a52dc
permissions
-rw-r--r--

Switch to kanagawa until themer's jellybeans is fixed

func! tig#Tig(...) abort
  enew
  setl nonumber
  call termopen(["tig"] + a:000, {'on_exit': 'tig#TigExit'})
endfunc

func! tig#TigBlame() abort
  call tig#Tig('blame', '+' . line('.'), '--', expand('%'))
endfunc

func! tig#TigExit(...) abort
  buffer #
endfunc

command! -nargs=* -complete=file Tig      call tig#Tig(<f-args>)
command!                         TigBlame call tig#TigBlame()
command!                         TigLog   call tig#Tig('log', '-p', '--', expand('%'))

mercurial