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