Skip to content

Commit 0f2fd38

Browse files
committed
refactor: log configuration before doing anything that could fail
1 parent 5bbc107 commit 0f2fd38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/copilot/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ M.setup = function(opts)
1212
highlight.setup()
1313
config.merge_with_user_configs(opts)
1414
logger.setup(config.logger)
15-
require("copilot.command").enable()
16-
1715
logger.debug("active plugin config:", config)
16+
require("copilot.command").enable()
1817
-- logged here to ensure the logger is setup
1918
logger.debug("active LSP config (may change runtime):", client.config)
2019

0 commit comments

Comments
 (0)