fix(copilot): work-around to get copilot working again on nightly
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user