vim/lightline.vim
2025-10-01 02:41:46 -07:00

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