Skip to content

Commit

Permalink
fix(nvim): add build command to copilot to fix multiple line bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Sep 16, 2024
1 parent d9f8658 commit c5af3e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .config/nvim/lua/specs/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c5af3e5

Please sign in to comment.