Win copilot edit, same shannigans but it works?

This commit is contained in:
inorishio
2026-03-06 11:25:21 +01:00
parent 75a5dd8f9c
commit 95828a8abe
+3 -1
View File
@@ -1,4 +1,6 @@
local is_windows = package.config:sub(1,1) == "\\"
require("copilot").setup({ require("copilot").setup({
panel = { panel = {
enabled = true, enabled = true,
auto_refresh = true, auto_refresh = true,
@@ -20,7 +22,7 @@ require("copilot").setup({
hide_during_completion = false, hide_during_completion = false,
debounce = 75, debounce = 75,
keymap = { keymap = {
accept = "<A-a>", accept = is_windows and "<A-a>" or "<A-a>",
accept_word = false, accept_word = false,
accept_line = false, accept_line = false,
next = "<M-]>", next = "<M-]>",