Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions autoload/polyglot/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,6 @@ if exists('s:cpo_save')
unlet s:cpo_save
endif

" Load user-defined filetype.vim and oter plugins ftdetect first
" This is to use polyglot-defined ftdetect always as fallback to user settings
augroup filetypedetect
runtime! filetype.vim
runtime! ftdetect/*.vim
augroup END


augroup filetypedetect

" Switch to compatible mode for the time being
Expand All @@ -161,11 +153,17 @@ if !has_key(g:polyglot_is_disabled, 'ftdetect')
" It can happen vim filetype.vim loads first, then we need a reset
if exists("did_load_filetypes")
au! filetypedetect
endif

" Prevent filetype.vim of vim from loading again
let did_load_filetypes = 1
" Load user-defined filetype.vim and other plugins ftdetect first
" This is to use polyglot-defined ftdetect always as fallback to user settings
augroup filetypedetect
runtime! filetype.vim
runtime! ftdetect/*.vim
augroup END

" Prevent filetype.vim of vim from loading again
let did_load_filetypes = 1
endif

" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE

Expand Down