We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d8d87 commit 670bfb6Copy full SHA for 670bfb6
lua/copilot/client.lua
@@ -194,7 +194,8 @@ local function prepare_client_config(overrides)
194
root_dir = vim.loop.cwd(),
195
name = "copilot",
196
capabilities = capabilities,
197
- get_language_id = function(_, filetype)
+ get_language_id = function(buf, filetype)
198
+ filetype = filetype or vim.bo[buf].filetype
199
return util.language_for_file_type(filetype)
200
end,
201
on_init = function(client, initialize_result)
0 commit comments