We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fe1aaa commit d3783b9Copy full SHA for d3783b9
lua/copilot/client.lua
@@ -97,11 +97,6 @@ function M.buf_attach(force)
97
return
98
end
99
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
105
local client_id = lsp_start(M.config)
106
store_client_id(client_id)
107
@@ -197,7 +192,6 @@ local function prepare_client_config(overrides)
197
192
agent_path,
198
193
},
199
194
root_dir = vim.loop.cwd(),
200
- get_root_dir = require("lspconfig.util").find_git_ancestor,
201
195
name = "copilot",
202
196
capabilities = capabilities,
203
get_language_id = function(_, filetype)
0 commit comments