This simple plugin provides a function which returns the name of current file with git status if available using
vim-fugitive and is intended for statusline integration.
:echoFugiState()
It will show something like main.c [ M] for modified file main.c.
For example, to show the filename with git status using lightline.vim,
configure as follows.
The plugin provides g:fugistate_expand_filename to modify the value the filename should be expanded to.
Default value is set to '%:t' and will show filename without path. Use available values like '%:p' for full path
or '' to use @% for directory/filename relative to current working directory.
License
This software is released under the MIT License, see LICENSE.