rename csv variables, add extensions section for doc
This commit is contained in:
parent
944ed9a8b9
commit
509c9f68a9
|
@ -130,11 +130,10 @@ function! airline#extensions#load()
|
||||||
call airline#extensions#tagbar#init(s:ext)
|
call airline#extensions#tagbar#init(s:ext)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if g:airline_enable_csv
|
if g:airline_enable_csv && exists(':Table')
|
||||||
call airline#extensions#csv#init(s:ext)
|
call airline#extensions#csv#init(s:ext)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
if exists(':VimShell')
|
if exists(':VimShell')
|
||||||
let s:filetype_overrides['vimshell'] = ['vimshell','%{vimshell#get_status_string()}']
|
let s:filetype_overrides['vimshell'] = ['vimshell','%{vimshell#get_status_string()}']
|
||||||
let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
|
let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
function! airline#extensions#csv#get_statusline()
|
function! airline#extensions#csv#get_statusline()
|
||||||
if &ft ==# "csv" && exists("*CSV_WCol")
|
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().']'
|
return '['.CSV_WCol('Name').CSV_WCol().']'
|
||||||
else
|
else
|
||||||
return '['.CSV_WCol().']'
|
return '['.CSV_WCol().']'
|
||||||
|
|
|
@ -61,16 +61,6 @@ values):
|
||||||
* enable/disable tagbar integration
|
* enable/disable tagbar integration
|
||||||
>
|
>
|
||||||
let g:airline_enable_tagbar=1
|
let g:airline_enable_tagbar=1
|
||||||
|
|
||||||
* enable/disable csv integration
|
|
||||||
>
|
|
||||||
let g:airline_enable_csv=1
|
|
||||||
|
|
||||||
(this displays the column number in the csv file)
|
|
||||||
|
|
||||||
let g:airline_filetype_csv = 'Name'
|
|
||||||
|
|
||||||
(this displays the column name)
|
|
||||||
<
|
<
|
||||||
|
|
||||||
* enable modified detection
|
* enable modified detection
|
||||||
|
@ -205,6 +195,22 @@ sections which by default host more than one extension.
|
||||||
let g:airline_section_c = '%t'
|
let g:airline_section_c = '%t'
|
||||||
<
|
<
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
EXTENSIONS *airline-extensions*
|
||||||
|
|
||||||
|
*airline-csv*
|
||||||
|
csv.vim <https://github.com/chrisbra/csv.vim>
|
||||||
|
|
||||||
|
* enable/disable csv integration for displaying the current column number.
|
||||||
|
>
|
||||||
|
let g:airline_enable_csv = 1
|
||||||
|
>
|
||||||
|
* change how columns are identified.
|
||||||
|
>
|
||||||
|
let g:airline#extensions#csv#column_identify = '' (default)
|
||||||
|
let g:airline#extensions#csv#column_identify = 'Name' (extracts column name)
|
||||||
|
>
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
FUNCREFS *airline-funcrefs*
|
FUNCREFS *airline-funcrefs*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue