orhnk / vimacs

Feature-full Neovim Experience - With Emacs, JetBrains features OOTB
GNU General Public License v3.0
324 stars 8 forks source link

configured keybinding for Copilot not working #30

Closed verajosemanuel closed 8 months ago

verajosemanuel commented 9 months ago

hi, first of all thanks for a great work on this. I love it.

Read the mapping at lua/custom/mapings.lua to check the keys to use copilot. Found C-h to accept suggestion.

image

But when i press C-h the suggestions are cycled but not accepted (1...2...3....). The usual mapping (TAB) does not work (tried just in case) image

checked copilot.lua file and noticed M-tab as "accept" keybind image

but not working either (i assumed M is Alt key but this rotates windows) any other mapping I should check?

orhnk commented 9 months ago

First of all, adding a new option named copilot will not affect the editor at all. You'll need to call that table where you define the mapping.

That's an issue because in my dwm (system config) alt-tab is not used system-wise

You need to change the one in the copilot.lua file in the configs dir.

[!NOTE] The reason C-h cycles the suggestions is that It's defined as is in the copilot.lua file (check the prev mapping)