mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Fix neovim warning, closes #563
This commit is contained in:
@@ -405,7 +405,7 @@ if exists('g:polyglot_test')
|
|||||||
autocmd!
|
autocmd!
|
||||||
endif
|
endif
|
||||||
|
|
||||||
func! polyglot#Observe(fn)
|
func! s:Observe(fn)
|
||||||
let b:polyglot_observe = a:fn
|
let b:polyglot_observe = a:fn
|
||||||
augroup polyglot-observer
|
augroup polyglot-observer
|
||||||
au! CursorHold,CursorHoldI,BufWritePost <buffer>
|
au! CursorHold,CursorHoldI,BufWritePost <buffer>
|
||||||
@@ -499,7 +499,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
|
|||||||
\ call polyglot#Shebang() | endif
|
\ call polyglot#Shebang() | endif
|
||||||
|
|
||||||
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
|
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
|
||||||
\ call polyglot#Observe('Shebang') | endif
|
\ call s:Observe('Shebang') | endif
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ if exists('g:polyglot_test')
|
|||||||
autocmd!
|
autocmd!
|
||||||
endif
|
endif
|
||||||
|
|
||||||
func! polyglot#Observe(fn)
|
func! s:Observe(fn)
|
||||||
let b:polyglot_observe = a:fn
|
let b:polyglot_observe = a:fn
|
||||||
augroup polyglot-observer
|
augroup polyglot-observer
|
||||||
au! CursorHold,CursorHoldI,BufWritePost <buffer>
|
au! CursorHold,CursorHoldI,BufWritePost <buffer>
|
||||||
@@ -2035,7 +2035,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
|
|||||||
\ call polyglot#Shebang() | endif
|
\ call polyglot#Shebang() | endif
|
||||||
|
|
||||||
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
|
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
|
||||||
\ call polyglot#Observe('Shebang') | endif
|
\ call s:Observe('Shebang') | endif
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ if exists('g:polyglot_test')
|
|||||||
autocmd!
|
autocmd!
|
||||||
endif
|
endif
|
||||||
|
|
||||||
func! polyglot#Observe(fn)
|
func! s:Observe(fn)
|
||||||
let b:polyglot_observe = a:fn
|
let b:polyglot_observe = a:fn
|
||||||
augroup polyglot-observer
|
augroup polyglot-observer
|
||||||
au! CursorHold,CursorHoldI,BufWritePost <buffer>
|
au! CursorHold,CursorHoldI,BufWritePost <buffer>
|
||||||
@@ -171,7 +171,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
|
|||||||
\ call polyglot#Shebang() | endif
|
\ call polyglot#Shebang() | endif
|
||||||
|
|
||||||
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
|
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
|
||||||
\ call polyglot#Observe('Shebang') | endif
|
\ call s:Observe('Shebang') | endif
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user