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 + } }