File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ M._defaults = {
2323 behaviour = {
2424 auto_set_keymaps = true ,
2525 auto_focus_sidebar = true ,
26- auto_start_server = true , -- Automatically start server on setup
26+ auto_start_server = false , -- Automatically start server on setup
2727 auto_download = true , -- Automatically download server if not found
2828 show_status_updates = true , -- Show status updates in notifications
2929 },
Original file line number Diff line number Diff line change @@ -245,10 +245,12 @@ function M.setup(opts)
245245 M .state = require (" eca.state" ).new ()
246246 M .server = Server .new ()
247247 M .mediator = require (" eca.mediator" ).new (M .server , M .state )
248- -- Start server automatically in background
249- vim .defer_fn (function ()
250- M .server :start ()
251- end , 100 ) -- Small delay to ensure everything is loaded
248+
249+ if Config .behaviour and Config .behaviour .auto_start_server then
250+ vim .defer_fn (function ()
251+ M .server :start ()
252+ end , 100 ) -- Small delay to ensure everything is loaded
253+ end
252254
253255 M .did_setup = true
254256end
You can’t perform that action at this time.
0 commit comments