Skip to content

Commit d3783b9

Browse files
committed
Revert "fix: make root directory detection dynamic (zbirenbaum#213)"
This reverts commit 7593549.
1 parent 0fe1aaa commit d3783b9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lua/copilot/client.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ function M.buf_attach(force)
9797
return
9898
end
9999

100-
local bufnr = vim.api.nvim_get_current_buf()
101-
local bufname = vim.api.nvim_buf_get_name(bufnr)
102-
103-
M.config.root_dir = M.config.get_root_dir(require("lspconfig.util").path.sanitize(bufname), bufnr)
104-
105100
local client_id = lsp_start(M.config)
106101
store_client_id(client_id)
107102
end
@@ -197,7 +192,6 @@ local function prepare_client_config(overrides)
197192
agent_path,
198193
},
199194
root_dir = vim.loop.cwd(),
200-
get_root_dir = require("lspconfig.util").find_git_ancestor,
201195
name = "copilot",
202196
capabilities = capabilities,
203197
get_language_id = function(_, filetype)

0 commit comments

Comments
 (0)