mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
rename csv variables, add extensions section for doc
This commit is contained in:
@@ -130,11 +130,10 @@ function! airline#extensions#load()
|
||||
call airline#extensions#tagbar#init(s:ext)
|
||||
endif
|
||||
|
||||
if g:airline_enable_csv
|
||||
call airline#extensions#csv#init(s:ext)
|
||||
if g:airline_enable_csv && exists(':Table')
|
||||
call airline#extensions#csv#init(s:ext)
|
||||
endif
|
||||
|
||||
|
||||
if exists(':VimShell')
|
||||
let s:filetype_overrides['vimshell'] = ['vimshell','%{vimshell#get_status_string()}']
|
||||
let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
function! airline#extensions#csv#get_statusline()
|
||||
if &ft ==# "csv" && exists("*CSV_WCol")
|
||||
if exists("g:airline_filetype_csv") && g:airline_filetype_csv ==# 'Name'
|
||||
if get(g:, 'airline#extensions#csv#column_identify', '') ==# 'Name'
|
||||
return '['.CSV_WCol('Name').CSV_WCol().']'
|
||||
else
|
||||
return '['.CSV_WCol().']'
|
||||
|
||||
Reference in New Issue
Block a user