Fix neovim warning, closes #563

This commit is contained in:
Adam Stankiewicz
2020-09-26 01:23:08 +02:00
parent 4f36a63813
commit 33b86476b6
3 changed files with 6 additions and 6 deletions

View File

@@ -405,7 +405,7 @@ if exists('g:polyglot_test')
autocmd!
endif
func! polyglot#Observe(fn)
func! s:Observe(fn)
let b:polyglot_observe = a:fn
augroup polyglot-observer
au! CursorHold,CursorHoldI,BufWritePost <buffer>
@@ -499,7 +499,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
\ call polyglot#Shebang() | endif
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
\ call polyglot#Observe('Shebang') | endif
\ call s:Observe('Shebang') | endif
augroup END

View File

@@ -9,7 +9,7 @@ if exists('g:polyglot_test')
autocmd!
endif
func! polyglot#Observe(fn)
func! s:Observe(fn)
let b:polyglot_observe = a:fn
augroup polyglot-observer
au! CursorHold,CursorHoldI,BufWritePost <buffer>
@@ -2035,7 +2035,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
\ call polyglot#Shebang() | endif
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
\ call polyglot#Observe('Shebang') | endif
\ call s:Observe('Shebang') | endif
augroup END

View File

@@ -77,7 +77,7 @@ if exists('g:polyglot_test')
autocmd!
endif
func! polyglot#Observe(fn)
func! s:Observe(fn)
let b:polyglot_observe = a:fn
augroup polyglot-observer
au! CursorHold,CursorHoldI,BufWritePost <buffer>
@@ -171,7 +171,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
\ call polyglot#Shebang() | endif
au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat |
\ call polyglot#Observe('Shebang') | endif
\ call s:Observe('Shebang') | endif
augroup END