mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 05:23:51 -05:00
Fix detecting conf filetype, closes #641
This commit is contained in:
@@ -2659,13 +2659,13 @@ func! s:Observe(fn)
|
||||
augroup END
|
||||
endfunc
|
||||
|
||||
au BufNewFile,BufRead,StdinReadPost * if expand("<afile>:e") == "" |
|
||||
au BufNewFile,BufRead,StdinReadPost,BufWritePost * if expand("<afile>:e") == "" |
|
||||
\ call polyglot#shebang#Detect() | endif
|
||||
|
||||
au BufWinEnter * if &ft == "" && expand("<afile>:e") == "" |
|
||||
au BufWinEnter * if &ft == "" && expand("<afile>:e") == "" |
|
||||
\ call s:Observe('shebang#Detect') | endif
|
||||
|
||||
au FileType * au! polyglot-observer
|
||||
au BufWritePost * au! polyglot-observer
|
||||
|
||||
augroup END
|
||||
|
||||
@@ -3528,7 +3528,6 @@ if exists("did_load_filetypes") && exists("g:polyglot_disabled")
|
||||
runtime! extras/filetype.vim
|
||||
endif
|
||||
|
||||
|
||||
let s:runtime = resolve($VIMRUNTIME)
|
||||
let s:base = resolve(expand('<sfile>:p:h:h'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user