Allow to define own path for short_path formatter

let g:airline#extensions#tabline#formatter = 'short_path'
let g:airline#extensions#tabline#fnamemod = ':h'

Update short_path documentation
This commit is contained in:
Radar
2022-12-22 15:50:45 +01:00
parent 6a4c82c950
commit 4e552414d4
2 changed files with 9 additions and 1 deletions

View File

@@ -1321,6 +1321,13 @@ Note: Not displayed if the number of tabs is less than 1
let g:airline#extensions#tabline#formatter = 'short_path'
" `short_path` can also display file name as relative to the current
" directory, if possible
let g:airline#extensions#tabline#fnamemod = ':h'
" or display file name as relative to the home directory, if possible
let g:airline#extensions#tabline#fnamemod = ':~:h'
* defines the customized format() function to display tab title in tab mode. >
let g:airline#extensions#tabline#tabtitle_formatter = 'MyTabTitleFormatter'
<