mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(copilot): work-around to get copilot working again on nightly
This commit is contained in:
parent
f198eef6e5
commit
59615281f8
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@ return {
|
||||||
help = true,
|
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
|
-- add ai_accept action
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue