-
Very disturbing. the default C-] , M-] , and M-[ are far off to me, can I remap them in another way? I use lua for configuration. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Answered by
mawkler
Feb 18, 2022
Replies: 1 comment 4 replies
-
For instance, if you want to remap them to Using Vimscript: imap <M-.> <Plug>(copilot-next)
imap <M-,> <Plug>(copilot-previous) Using Lua (requires Neovim 0.7+): vim.keymap.set('i', '<M-.>', '<Plug>(copilot-next)')
vim.keymap.set('i', '<M-,>', '<Plug>(copilot-previous)') Using Lua (requires Neovim 0.5+): nvim_set_keymap('i', '<M-.>', '<Plug>(copilot-next)', { noremap = false })
nvim_set_keymap('i', '<M-,>', '<Plug>(copilot-previous)', { noremap = false }) Check out |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
tpope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For instance, if you want to remap them to
Alt-.
/Alt-,
instead:Using Vimscript:
Using Lua (requires Neovim 0.7+):
Using Lua (requires Neovim 0.5+):
Check out
:help copilot-maps
for more info.