chore(copilot): added copilot.lua

This commit is contained in:
Juliano Barbosa 2024-08-15 09:36:54 -03:00
parent df62ad5823
commit 8c5945a038
No known key found for this signature in database
GPG Key ID: EB8B440F57360B3D
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
return {
'github/copilot.vim',
config = function()
vim.keymap.set('i', '<C-J>', 'copilot#Accept("\\<CR>")', {
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,
},
},
}