diff --git a/.config/nvim/lua/specs/copilot.lua b/.config/nvim/lua/specs/copilot.lua index 4c6eb2cd..fcb605e0 100644 --- a/.config/nvim/lua/specs/copilot.lua +++ b/.config/nvim/lua/specs/copilot.lua @@ -5,6 +5,11 @@ Plugin.name = 'copilot' Plugin.cmd = 'Copilot' Plugin.event = 'InsertEnter' +-- This is a workaround for the multiple line bug. +-- https://github.com/orgs/community/discussions/40522 +Plugin.build = + "sed -i '' 's/f\\.stop=\\[\\`/f.stop=[`\\n\\n/' ~/.local/share/nvim/lazy/copilot/copilot/dist/language-server.js" + Plugin.opts = { panel = { enabled = false }, suggestion = {