coq_nvim icon indicating copy to clipboard operation
coq_nvim copied to clipboard

Question: Specific reason behind 'manual_complete' mapping also in 'Normal' mode?

Open skoenen opened this issue 3 years ago • 1 comments

I have mapped za to <C-space> to have a convenient way to open and close a fold.

So i thougth, why not set the manual complete to <C-p> instead. Because it is the default mapping for completion in vim in Insert mode. So it does not interfere with settings in Normal mode. So I have a mapping for the fzf plugin to find a file in the current project on <C-p> in Normal mode and then the manual completion in Insert mode.

But this specific line is preventing this: https://github.com/ms-jpq/coq_nvim/blob/9546c14f6664df71b9427b38fcebb7800b69799e/coq/server/registrants/options.py#L70

Therefore my question: Specific reason behind 'manual_complete' mapping also in 'Normal' mode?

skoenen avatar Jan 17 '22 11:01 skoenen

I don't like this either. I use <C-space> in normal mode to access buffers and this is not very good. Maybe making this optional by removing it from the code and adding an entry in the custom keybindings section would be better?

Or adding it to the recommended keymaps section to avoid confusion.

I'm not sure how many people use this recommended binding so this could be a bad idea if we break other people's setup :(

Diegovsky avatar Apr 02 '22 13:04 Diegovsky

https://github.com/ms-jpq/coq_nvim/blob/coq/docs/KEYBIND.md

coq_settings.keymap.manual_complete_insertion_only set this to true to fix this issue :D

ms-jpq avatar Aug 23 '22 04:08 ms-jpq

Thank you!

Diegovsky avatar Sep 16 '22 20:09 Diegovsky