-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
- Starting with nvim & OSX
- Installed plugin with vim-plug; vim-plug reported success
- Open .go file
- nvim reports:
Error detected while processing function ABCGo:
line 1:
E117: Unknown function: job_start
It appears this ticket may be relevant.
I am not a vimscript hacker, but this code change seems to fix the issue:
diff --git a/vim/plugin/abcgo.vim b/vim/plugin/abcgo.vim
index 839fda4..36f68ba 100644
--- a/vim/plugin/abcgo.vim
+++ b/vim/plugin/abcgo.vim
@@ -33,7 +33,11 @@ function! ABCGoBackground(channel, reports)
endfunction
function! ABCGo()
- call job_start($GOPATH . "/bin/abcgo -format raw -path " . expand("%:p"), {'callback': 'ABCGoBackground', 'mode': 'raw'})
+ if has("nvim")
+ call jobstart($GOPATH . "/bin/abcgo -format raw -path " . expand("%:p"), {'callback': 'ABCGoBackground', 'mode': 'raw'})
+ else
+ call job_start($GOPATH . "/bin/abcgo -format raw -path " . expand("%:p"), {'callback': 'ABCGoBackground', 'mode': 'raw'})
+ endif
endfunction
augroup abcgo_autocmd
Metadata
Metadata
Assignees
Labels
No labels