diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 21:16:44 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 21:16:48 +0100 |
commit | 5005f1e27a9a600822a16363eff5ee76bc130331 (patch) | |
tree | 34719f33b830aaa69e222aae031342ba2a97c426 /ftdetect | |
parent | 571f76e6b62ef4535322345094b23605d7308e72 (diff) | |
download | vim-polyglot-5005f1e27a9a600822a16363eff5ee76bc130331.tar.gz vim-polyglot-5005f1e27a9a600822a16363eff5ee76bc130331.zip |
Add csv plugin, closes #239
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index c1cdcbe9..4d2396a3 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -3,6 +3,14 @@ if !exists('g:jsx_ext_required') let g:jsx_ext_required = 0 endif +" Make csv loading faster +if !exists('g:csv_start') + let g:csv_start = 1 +endif +if !exists('g:csv_end') + let g:csv_end = 2 +endif + " Disable json concealing by default if !exists('g:vim_json_syntax_conceal') let g:vim_json_syntax_conceal = 0 @@ -241,6 +249,14 @@ autocmd BufNewFile,BufReadPost *.ecr setlocal filetype=eruby augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1 + augroup filetypedetect + " csv, from csv.vim in chrisbra/csv.vim +" Install Filetype detection for CSV files +au BufRead,BufNewFile *.csv,*.dat,*.tsv,*.tab set filetype=csv + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 augroup filetypedetect " cucumber, from cucumber.vim in tpope/vim-cucumber |