We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9089b commit 1e7f649Copy full SHA for 1e7f649
lua/copilot/init.lua
@@ -1,4 +1,4 @@
1
-local M = { client_info = nil }
+local M = { setup_done = false }
2
local config = require("copilot.config")
3
local client = require("copilot.client")
4
local highlight = require("copilot.highlight")
@@ -31,6 +31,10 @@ local create_cmds = function (_)
31
end
32
33
M.setup = function(opts)
34
+ if M.setup_done then
35
+ return
36
+ end
37
+
38
local conf = config.setup(opts)
39
40
vim.schedule(function ()
@@ -47,6 +51,8 @@ M.setup = function(opts)
47
51
end)
48
52
49
53
highlight.setup()
54
55
+ M.setup_done = true
50
56
57
58
return M
0 commit comments