mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 13:03:50 -05:00
Add rego support, closes #471
This commit is contained in:
@@ -1221,6 +1221,17 @@ au BufNewFile,BufRead .merlin set ft=merlin
|
||||
augroup end
|
||||
endif
|
||||
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rego') == -1
|
||||
augroup filetypedetect
|
||||
" rego, from rego.vim in tsandall/vim-rego
|
||||
autocmd BufRead,BufNewFile *.rego set filetype=rego
|
||||
|
||||
" Use # as a comment prefix
|
||||
setlocal comments=b:#,fb:-
|
||||
setlocal commentstring=#\ %s
|
||||
augroup end
|
||||
endif
|
||||
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
|
||||
augroup filetypedetect
|
||||
" ruby, from ruby.vim in vim-ruby/vim-ruby
|
||||
|
||||
Reference in New Issue
Block a user