From 8c5945a038762aa53020ca7e8683ebb55c5bb0e9 Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Thu, 15 Aug 2024 09:36:54 -0300 Subject: [PATCH] chore(copilot): added copilot.lua --- lua/custom/plugins/copilot.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/custom/plugins/copilot.lua diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..e9cf36d4 --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -0,0 +1,20 @@ +return { + 'github/copilot.vim', + config = function() + vim.keymap.set('i', '', 'copilot#Accept("\\")', { + expr = true, + replace_keycodes = false, + }) + vim.g.copilot_no_tab_map = true + end, + opts = { + suggestion = { enabled = false }, + panel = { enabled = false }, + filetypes = { + gitcommit = true, + yaml = true, + markdown = true, + help = true, + }, + }, +}