17 lines
542 B
VimL
17 lines
542 B
VimL
set laststatus=2
|
|
let g:lightline = {
|
|
\ 'colorscheme' : 'tokyonight',
|
|
\ 'active': {
|
|
\ 'left': [ [ 'mode', 'paste' ],
|
|
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ],
|
|
\ 'right': [ [ 'lineinfo' ], [ 'fileformat', 'fileencoding', 'filetype' ] ]
|
|
\ },
|
|
\ 'component_function': {
|
|
\ 'gitbranch': 'FugitiveHead',
|
|
\ 'filename': 'LightlineFilename'
|
|
\ }
|
|
\ }
|
|
|
|
function! LightlineFilename()
|
|
return expand('%:t') !=# '' ? expand('%:t') : '[No Name]'
|
|
endfunction
|