From bc8a2a40e74dac1f99cec167f9ae128f72c5d88f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 9 May 2023 01:27:59 +0100 Subject: [PATCH] fix(completion/copilot): temporarily pin copilot.el On later commits, I have intermittent weird issues while typing with a copilot overlay active. Until I have to time further investigate and report an issue, I will have to pin copilot.el to a earlier commit. --- modules/completion/siren-copilot.el | 10 ++++++++-- straight/versions/default.el | 1 - straight/versions/pinned.el | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/completion/siren-copilot.el b/modules/completion/siren-copilot.el index 08d9bb2..c2a1eed 100644 --- a/modules/completion/siren-copilot.el +++ b/modules/completion/siren-copilot.el @@ -8,9 +8,15 @@ (require 'cl-lib) +(let ((straight-current-profile 'pinned)) + ;; Pin copilot to commit before I started getting random character jumps while + ;; typing with a copilot overlay active. + (straight-x-pin-package "copilot" "40cc5ef071f52ef9bc8545325a0e0fab44d6180d") + (straight-use-package '(copilot :host github :repo "zerolfx/copilot.el" + :files ("dist" "*.el")))) + (use-package copilot - :straight (:host github :repo "zerolfx/copilot.el" - :files ("dist" "*.el")) + :straight (:type built-in) ;; installed above in pinned block :hook (prog-mode . copilot-mode) diff --git a/straight/versions/default.el b/straight/versions/default.el index ff7b63c..c4b5db7 100644 --- a/straight/versions/default.el +++ b/straight/versions/default.el @@ -30,7 +30,6 @@ ("consult" . "215c7aeef3f28975efbfc8858a10a08ad011d5b7") ("consult-dir" . "ed8f0874d26f10f5c5b181ab9f2cf4107df8a0eb") ("consult-lsp" . "f8db3252c0daa41225ba4ed1c0d178b281cd3e90") - ("copilot.el" . "8256377a77b1268a9ea5d470c59a05d26ff5b432") ("cucumber.el" . "c08e4fa64bf3e9e354fd7f9f058916ba607e6631") ("cycle-quotes" . "c4d62848127d03b27f897f9b290ba5cef9fb0845") ("dap-mode" . "18254e16bae53fb4a8c2434764d3cf674644bf2a") diff --git a/straight/versions/pinned.el b/straight/versions/pinned.el index d041b14..04a1e6c 100644 --- a/straight/versions/pinned.el +++ b/straight/versions/pinned.el @@ -1,2 +1,3 @@ -(("doom-modeline" . "918730eff72e155cfb31b012493a7f425bc48ff8")) +(("copilot" . "40cc5ef071f52ef9bc8545325a0e0fab44d6180d") + ("doom-modeline" . "918730eff72e155cfb31b012493a7f425bc48ff8")) :gamma