improving startup time by using lazy loading or filetype loading

This commit is contained in:
Jeremie Fraeys 2024-07-21 20:57:00 -04:00
parent bdb655c5a1
commit 7f1b34fd6f
62 changed files with 1285 additions and 561 deletions

19
lua/custom/plugins/copilot.lua Normal file → Executable file
View file

@ -1,3 +1,20 @@
return {
'github/copilot.vim',
'zbirenbaum/copilot.lua',
cmd = 'Copilot',
event = 'InsertEnter',
opts = {
suggestion = {
auto_trigger = true,
filetypes = {
['.'] = true,
},
keymap = {
accept_word = '<M-k>',
accept_line = '<M-j>',
next = 'M-[',
previous = 'M-]',
},
},
},
}