Remove git hooks

This commit is contained in:
Martin Pander
2023-12-11 14:28:57 +01:00
parent c88a1c6883
commit f2a2c2c214
10 changed files with 26 additions and 134 deletions

View File

@ -301,12 +301,12 @@ augroup VimIntern
augroup END
" tmux window title
augroup TmuxTitle
autocmd!
au VimEnter * call SaveTmuxWindowName()
au SessionLoadPost * call ChangeTmuxToSessionName()
au VimLeave * call system("tmux rename-window '" . g:tmuxWindowName . "'")
augroup END
" augroup TmuxTitle
" autocmd!
" au VimEnter * call SaveTmuxWindowName()
" au SessionLoadPost * call ChangeTmuxToSessionName()
" au VimLeave * call system("tmux rename-window '" . g:tmuxWindowName . "'")
" augroup END
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" filetype specific
@ -360,21 +360,21 @@ endfunction
" endfunction
" change tmux window name to session
function! ChangeTmuxToSessionName()
let sessionName = v:this_session
if strlen(sessionName)
let session = substitute(sessionName, ".*/", "", "g")
call system("tmux rename-window '" . session . "'")
else
call system("tmux rename-window 'nvim'")
endif
endfunction
" function! ChangeTmuxToSessionName()
" let sessionName = v:this_session
" if strlen(sessionName)
" let session = substitute(sessionName, ".*/", "", "g")
" call system("tmux rename-window '" . session . "'")
" else
" call system("tmux rename-window 'nvim'")
" endif
" endfunction
function! SaveTmuxWindowName()
let g:tmuxWindowName = system("tmux display-message -p '#W'")
let g:tmuxWindowName = substitute(g:tmuxWindowName, '\n\+$', '', '')
call system("tmux rename-window 'nvim'")
endfunction
" function! SaveTmuxWindowName()
" let g:tmuxWindowName = system("tmux display-message -p '#W'")
" let g:tmuxWindowName = substitute(g:tmuxWindowName, '\n\+$', '', '')
" call system("tmux rename-window 'nvim'")
" endfunction
" remove whitespaces
function! TrimWhiteSpace()