From 8317ff3ef003a61c5f213c78f922890c79889f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 9 May 2023 21:22:18 +0200 Subject: [PATCH] add github copilot settings --- mappings.lua | 8 ++++++++ plugins/user.lua | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/mappings.lua b/mappings.lua index 54af90c..2436702 100644 --- a/mappings.lua +++ b/mappings.lua @@ -38,4 +38,12 @@ return { -- setting a mapping to false will disable it -- [""] = false, }, + v = { + [""] = { ":m '<-2gv=gv'" }, + [""] = { ":m '>+1gv=gv'" }, + }, + i = { + -- [""] = { "copilot#Accept(\"\\\")", desc = "copilot expand", silent = true, expr = true, script = true } + [""] = { "copilot#Accept(\"\\\")", desc = "copilot expand", silent = true, expr = true, replace_keycodes = false } + } } diff --git a/plugins/user.lua b/plugins/user.lua index acdbf63..792ad26 100644 --- a/plugins/user.lua +++ b/plugins/user.lua @@ -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 + } }