我尝试升级我的.vimrc
文件。当我打开Rails应用程序时,正在处理以下错误。
rails_app/config/environments/development.rb 2,3 Top
Error detected while processing CursorHold Auto commands for "*":
E117: Unknown function: ale#Lint
Press ENTER or type command to continue
我猜是从Ale引发的错误。
" ALE linting events
augroup ale
autocmd!
if g:has_async
set updatetime=1000
let g:ale_lint_on_text_changed = 0
autocmd CursorHold * call ale#Lint()
autocmd CursorHoldI * call ale#Lint()
autocmd InsertEnter * call ale#Lint()
autocmd InsertLeave * call ale#Lint()
else
echoerr "The thoughtbot dotfiles require NeoVim or Vim 8"
endif
augroup END
在vimrc.bundles
上,我有以下一行。
if g:has_async
Plug 'w0rp/ale'
endif
有没有正确安装麦芽酒的原因?
答案 0 :(得分:1)
ale#Lint需要替换为ale#Queue(0)
请参阅相关的请求请求: https://github.com/thoughtbot/dotfiles/pull/615/files