Skip to content

Commit cc8aaf4

Browse files
committed
fix auto server start config and make it false by default
1 parent 6161194 commit cc8aaf4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lua/eca/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
},

lua/eca/init.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
254256
end

0 commit comments

Comments
 (0)