We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c0b8a commit 58c7ff6Copy full SHA for 58c7ff6
autoload/jack_in.vim
@@ -1,10 +1,21 @@
1
-function! s:RunRepl(cmd)
2
- if exists(':Start!') == 2
3
- execute 'Start! '.a:cmd
+function! s:warn(str) abort
+ echohl WarningMsg
+ echomsg a:str
4
+ echohl None
5
+ let v:warningmsg = a:str
6
+endfunction
7
+
8
+function! s:RunRepl(cmd) abort
9
+ if exists(':Start') == 2
10
+ execute 'Start!' a:cmd
11
else
- tabnew
- call termopen(a:cmd)
- tabprevious
12
+ call s:warn('dispatch.vim not installed, please install it.')
13
+ if has('nvim')
14
+ call s:warn('neovim detected, falling back on termopen()')
15
+ tabnew
16
+ call termopen(a:cmd)
17
+ tabprevious
18
+ endif
19
endif
20
endfunction
21
0 commit comments