Skip to content

Commit 5bbc107

Browse files
committed
fix: ensure logger is set up prior to starting the LSP
1 parent 6fa90e6 commit 5bbc107

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/copilot/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ local M = { setup_done = false }
22
local highlight = require("copilot.highlight")
33
local logger = require("copilot.logger")
44
local client = require("copilot.client")
5-
local auth = require("copilot.auth")
65
local config = require("copilot.config")
76

87
M.setup = function(opts)
@@ -12,9 +11,8 @@ M.setup = function(opts)
1211

1312
highlight.setup()
1413
config.merge_with_user_configs(opts)
15-
16-
require("copilot.command").enable()
1714
logger.setup(config.logger)
15+
require("copilot.command").enable()
1816

1917
logger.debug("active plugin config:", config)
2018
-- logged here to ensure the logger is setup

0 commit comments

Comments
 (0)