Skip to content

Commit 1c2e65e

Browse files
committed
fix: ensure buffer is not attached on LSP start as it is long-lived regardless of buffer
1 parent 096c8f6 commit 1c2e65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/client/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function M.ensure_client_started()
118118
end
119119

120120
M.config.root_dir = utils.get_root_dir(config.root_dir)
121-
local client_id, err = vim.lsp.start(M.config)
121+
local client_id, err = vim.lsp.start(M.config, { attach = false })
122122

123123
if not client_id then
124124
logger.error(string.format("error starting LSP client: %s", err))

0 commit comments

Comments
 (0)