~garritfra/dotfiles

e72e543b1e6714cbaf1e7ce690ce69c78bc306bd — Garrit Franke 11 months ago c62863e
feat(vim): don't show full file name
2 files changed, 1 insertions(+), 10 deletions(-)

M .config/nvim/init.vim
A .gitconfig
M .config/nvim/init.vim => .config/nvim/init.vim +0 -10
@@ 284,19 284,9 @@ let g:lightline = {
      \ },
      \ 'component_function': {
      \   'gitbranch': 'FugitiveHead',
      \   'filename': 'LightlineFilename',
      \ },
      \ }

function! LightlineFilename()
  let root = fnamemodify(get(b:, 'git_dir'), ':h')
  let path = expand('%:p')
  if path[:len(root)-1] ==# root
    return path[len(root)+1:]
  endif
  return expand('%')
endfunction

" -----------------------
" Remaps
" -----------------------

A .gitconfig => .gitconfig +1 -0
@@ 0,0 1,1 @@
/Users/garrit/.gitconfig
\ No newline at end of file