first version, bunch of plugins, keymaps and configuration
This commit is contained in:
parent
2510c29d62
commit
ec6733a0ea
30 changed files with 1425 additions and 96 deletions
29
lua/custom/plugins/copilot.lua
Normal file
29
lua/custom/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
--
|
||||
-- copilot setup config
|
||||
--
|
||||
|
||||
local M = {
|
||||
'zbirenbaum/copilot.lua',
|
||||
event = 'BufRead',
|
||||
}
|
||||
|
||||
-- Copilot setup
|
||||
function M.config()
|
||||
require('copilot').setup({
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
debounce = 50,
|
||||
keymap = {
|
||||
accept = '<M-a>',
|
||||
accept_word = '<M-w>',
|
||||
accept_line = '<M-b>',
|
||||
next = '<c-j>',
|
||||
prev = '<c-k>',
|
||||
dismiss = '<C-d>',
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue