Large rewrite, simplify keymapping, utilize as much keys from Lazy as
possible. Reduce manually setup plugins and utilize opts instead.
This commit is contained in:
parent
72eb62b9cb
commit
43020a4d12
17 changed files with 408 additions and 780 deletions
|
|
@ -1,18 +1,18 @@
|
|||
return {
|
||||
"github/copilot.vim",
|
||||
config = function()
|
||||
event = "InsertEnter",
|
||||
init = function()
|
||||
vim.g.copilot_no_tab_map = true
|
||||
require("utils").add_keymaps({
|
||||
i = {
|
||||
["<Right>"] = {
|
||||
cmd = 'copilot#Accept("\\<Right>")',
|
||||
opts = {
|
||||
expr = true,
|
||||
replace_keycodes = false,
|
||||
silent = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<Right>",
|
||||
'copilot#Accept("\\<Right>")',
|
||||
mode = "i",
|
||||
expr = true,
|
||||
replace_keycodes = false,
|
||||
silent = true,
|
||||
desc = "Copilot Accept with <Right>",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue