10
10
@click .command (context_settings = dict (allow_extra_args = True ))
11
11
@click .option ('--prog' )
12
12
@click .option ('--notify' , '-n' , default = False , is_flag = True )
13
- @click .option ('--gui' , '-g' , default = False , is_flag = True )
14
13
@click .option ('--listen' , '-l' )
15
14
@click .option ('--connect' , '-c' )
16
15
@click .option ('--profile' ,
17
16
default = 'disable' ,
18
17
type = click .Choice (['ncalls' , 'tottime' , 'percall' , 'cumtime' ,
19
18
'name' , 'disable' ]))
20
19
@click .pass_context
21
- def main (ctx , prog , notify , gui , listen , connect , profile ):
20
+ def main (ctx , prog , notify , listen , connect , profile ):
22
21
"""Entry point."""
23
22
address = connect or listen
24
23
@@ -42,7 +41,7 @@ def main(ctx, prog, notify, gui, listen, connect, profile):
42
41
import time
43
42
from subprocess import Popen
44
43
os .environ ['NVIM_LISTEN_ADDRESS' ] = address
45
- nvim_argv = shlex .split (prog or 'nvim -T abstract_ui ' ) + ctx .args
44
+ nvim_argv = shlex .split (prog or 'nvim --headless ' ) + ctx .args
46
45
# spawn the nvim with stdio redirected to /dev/null.
47
46
dnull = open (os .devnull )
48
47
p = Popen (nvim_argv , stdin = dnull , stdout = dnull , stderr = dnull )
@@ -59,12 +58,8 @@ def main(ctx, prog, notify, gui, listen, connect, profile):
59
58
nvim_argv = shlex .split (prog or 'nvim --embed' ) + ctx .args
60
59
nvim = attach ('child' , argv = nvim_argv )
61
60
62
- if gui :
63
- from .gtk_ui import GtkUI
64
- ui = GtkUI ()
65
- else :
66
- from .tickit_ui import TickitUI
67
- ui = TickitUI ()
61
+ from .gtk_ui import GtkUI
62
+ ui = GtkUI ()
68
63
bridge = UIBridge ()
69
64
bridge .connect (nvim , ui , profile if profile != 'disable' else None , notify )
70
65
0 commit comments