fix(copilot): work-around to get copilot working again on nightly

This commit is contained in:
Folke Lemaitre
2024-11-19 08:49:51 +01:00
parent f198eef6e5
commit 59615281f8

View File

@ -22,6 +22,15 @@ return {
help = true,
},
},
config = function(_, opts)
require("copilot").setup(opts)
-- HACK: work-around for https://github.com/neovim/neovim/issues/31262
local Util = require("copilot.util")
local language_for_file_type = Util.language_for_file_type
Util.language_for_file_type = function(ft)
return language_for_file_type(ft or "")
end
end,
},
-- add ai_accept action