add github copilot settings

This commit is contained in:
Tim Gröger 2023-05-09 21:22:18 +02:00
parent 46df4817af
commit 8317ff3ef0
2 changed files with 16 additions and 0 deletions

View File

@ -38,4 +38,12 @@ return {
-- setting a mapping to false will disable it
-- ["<esc>"] = false,
},
v = {
["<S-up>"] = { ":m '<-2<CR>gv=gv'" },
["<S-down>"] = { ":m '>+1<CR>gv=gv'" },
},
i = {
-- ["<C-f>"] = { "copilot#Accept(\"\\<CR>\")", desc = "copilot expand", silent = true, expr = true, script = true }
["<C-f>"] = { "copilot#Accept(\"\\<CR>\")", desc = "copilot expand", silent = true, expr = true, replace_keycodes = false }
}
}

View File

@ -9,4 +9,12 @@ return {
-- require("lsp_signature").setup()
-- end,
-- },
{
"github/copilot.vim",
cmd = "Copilot",
event = "BufRead",
init = function()
vim.g.copilot_no_tab_map = true
end
}
}