Add bats support

parent 27ef1f6a
......@@ -27,6 +27,7 @@ let g:maplocalleader = "\\"
filetype off
" vim-plug
call plug#begin(expand($HOME.'/.vim/plugged'))
Plug 'Aliou/bats.vim', {'for': 'bats'}
Plug 'artur-shaik/vim-javacomplete2', {'for': 'java'}
Plug 'b4winckler/vim-objc', {'for': 'objc'}
Plug 'beloglazov/vim-online-thesaurus'
......@@ -54,6 +55,7 @@ Plug 'kana/vim-textobj-fold'
" dep: vim-textobj-user
Plug 'kana/vim-textobj-function'
" dep: vim-textobj-user
Plug 'keremc/asyncomplete-racer.vim', {'for': 'rust'}
Plug 'kien/ctrlp.vim'
Plug 'kovisoft/slimv', {'for': 'lisp'}
Plug 'leafgarland/typescript-vim', {'for': 'typescript'}
......@@ -69,7 +71,6 @@ Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'prabirshrestha/asyncomplete-tags.vim'
Plug 'keremc/asyncomplete-racer.vim', {'for': 'rust'}
Plug 'prabirshrestha/vim-lsp'
Plug 'purescript-contrib/purescript-vim', {'for': 'purescript'}
Plug 'rhysd/devdocs.vim'
......
......@@ -6,29 +6,33 @@ endif
let g:loaded_filetype = 1
function! misc#filetype#setup()
augroup treat_as_lisp
augroup treat_as_bats
autocmd!
autocmd BufNewFile,BufRead .stumpwmrc,.clisprc setlocal filetype=lisp
autocmd BufNewFile,BufRead *.bats setlocal filetype=bats
augroup END
augroup treat_as_changelog
autocmd!
autocmd BufNewFile,BufRead CHANGELOG setlocal filetype=changelog
augroup END
augroup treat_as_erlang
autocmd!
autocmd BufNewFile,BufRead .rebar.config,*.app.src setlocal filetype=erlang
augroup END
augroup treat_as_rspec
augroup treat_as_jinja
autocmd!
autocmd BufNewFile,BufRead *_spec.rb setlocal filetype=ruby.rspec
autocmd BufNewFile,BufRead *.tera setlocal filetype=jinja
augroup END
augroup treat_as_js
autocmd!
autocmd BufNewFile,BufRead *.js.erb,.conkerorrc setlocal filetype=javascript
augroup END
augroup treat_as_changelog
augroup treat_as_lisp
autocmd!
autocmd BufNewFile,BufRead CHANGELOG setlocal filetype=changelog
autocmd BufNewFile,BufRead .stumpwmrc,.clisprc setlocal filetype=lisp
augroup END
augroup treat_as_jinja
augroup treat_as_rspec
autocmd!
autocmd BufNewFile,BufRead *.tera setlocal filetype=jinja
autocmd BufNewFile,BufRead *_spec.rb setlocal filetype=ruby.rspec
augroup END
augroup treat_as_xml
autocmd!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment