better jumpkey and copilot bindings
This commit is contained in:
parent
43147c78c4
commit
c9e713d162
@ -6,6 +6,8 @@ return {
|
||||
vim.api.nvim_set_keymap('n', '<M-s>', '<Plug>(easymotion-s2)', {})
|
||||
vim.api.nvim_set_keymap('n', '<M-l>', '<Plug>(easymotion-lineanywhere)', {})
|
||||
vim.api.nvim_set_keymap('n', '<M-j>', '<Plug>(easymotion-jumptoanywhere)', {})
|
||||
|
||||
vim.g.EasyMotion_keys = 'asdghklqwertzuiopzxcvbnmfjé'
|
||||
end
|
||||
},
|
||||
}
|
||||
|
||||
@ -4,7 +4,17 @@ return {
|
||||
{'gorkunov/smartpairs.vim'},
|
||||
{'tpope/vim-surround'},
|
||||
{'jiangmiao/auto-pairs'},
|
||||
{'github/copilot.vim'},
|
||||
{'github/copilot.vim',
|
||||
config = function()
|
||||
vim.keymap.set('i', '<C-J>', 'copilot#Accept("\\<CR>")', { expr = true, replace_keycodes = false })
|
||||
vim.keymap.set('i', '<C-L>', '<Plug>(copilot-accept-word)')
|
||||
vim.keymap.set('i', '<PageDown>', '<Plug>(copilot-previous)')
|
||||
vim.keymap.set('i', '<PageUp>', '<Plug>(copilot-next)')
|
||||
vim.keymap.set('i', '<Home>', '<Plug>(copilot-suggest)')
|
||||
vim.keymap.set('i', '<M-Left>', '<esc>dawi<Right>')
|
||||
vim.g.copilot_no_tab_map=true
|
||||
end
|
||||
},
|
||||
{'mattn/emmet-vim',
|
||||
ft = { 'html', 'css', 'javascript', 'typescript', 'vue' },
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user