mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 09:17:56 +08:00
Treat R Markdown the same as Markdown
This commit is contained in:
parent
8e989201c8
commit
84823e5e7d
|
@ -52,7 +52,7 @@ endfunction
|
|||
function! s:conflict_marker()
|
||||
" Checks for git conflict markers
|
||||
let annotation = '\%([0-9A-Za-z_.:]\+\)\?'
|
||||
if match(['rst', 'markdown'], &ft) >= 0
|
||||
if match(['rst', 'markdown', 'rmd'], &ft) >= 0
|
||||
" rst filetypes use '=======' as header
|
||||
let pattern = '^\%(\%(<\{7} '.annotation. '\)\|\%(>\{7\} '.annotation.'\)\)$'
|
||||
else
|
||||
|
|
|
@ -92,7 +92,7 @@ endfunction
|
|||
" default filetypes:
|
||||
function! airline#extensions#wordcount#apply(...)
|
||||
let filetypes = get(g:, 'airline#extensions#wordcount#filetypes',
|
||||
\ ['asciidoc', 'help', 'mail', 'markdown', 'nroff', 'org', 'rst', 'plaintex', 'tex', 'text'])
|
||||
\ ['asciidoc', 'help', 'mail', 'markdown', 'rmd', 'nroff', 'org', 'rst', 'plaintex', 'tex', 'text'])
|
||||
" export current filetypes settings to global namespace
|
||||
let g:airline#extensions#wordcount#filetypes = filetypes
|
||||
|
||||
|
|
|
@ -1556,7 +1556,7 @@ virtualenv <https://github.com/jmcantrell/vim-virtualenv>
|
|||
<
|
||||
* enable virtualenv for additional filetypes:
|
||||
(default: python): >
|
||||
let g:airline#extensions#virtualenv#ft = ['python', 'markdown']
|
||||
let g:airline#extensions#virtualenv#ft = ['python', 'markdown', 'rmd']
|
||||
<
|
||||
------------------------------------- *airline-vista*
|
||||
vista.vim <https://github.com/liuchengxu/vista.vim>
|
||||
|
@ -1662,7 +1662,7 @@ vim-windowswap <https://github.com/wesQ3/vim-windowswap>
|
|||
" The default value matches filetypes typically used for documentation
|
||||
" such as markdown and help files. Default is:
|
||||
let g:airline#extensions#wordcount#filetypes =
|
||||
\ ['asciidoc', 'help', 'mail', 'markdown', 'nroff', 'org', 'plaintex', 'rst', 'tex', 'text'])
|
||||
\ ['asciidoc', 'help', 'mail', 'markdown', 'rmd' 'nroff', 'org', 'plaintex', 'rst', 'tex', 'text'])
|
||||
" Use ['all'] to enable for all filetypes.
|
||||
|
||||
* defines the name of a formatter for word count will be displayed: >
|
||||
|
|
Loading…
Reference in New Issue
Block a user