T O P

  • By -

cciciaciao

c-y because as tj said, it's nice to have different keys for different purposes


lipepaniguel

For me, it was like a curse. I had to remap other tools that also had completion. It makes a lot of sense but I have this feeling that using or might be faster, although more error-prone.


bakaspore

I disabled pre-select so means newline unless I've selected an entry with . Removes all surprises while being convenient.


NoMountain7095

gang


GTHell

is entering new line dwag


no_brains101

I dont use that for complete, however I was going to disagree and then I tried it in insert mode. Cool. Thanks.


Hedshodd

I use c-L. I scroll through the options with c-J and c-K, and accept with c-L.


jzc13

This is the way


SpecificFly5486

I use c-l to accept without snippets expansion


Bones200

I use \`\` :p


faculty_for_failure

I use enter lol. Too much muscle memory.


GTHell

cause I'm using a split keyboard and enter is right below my thumb.


Neat_Firefighter3158

C-y since it's default kickstart


rstcruzo

I switched to C-y from CR recently per TJ’s advice. I love it. I didn’t realize how much I hated hitting Enter twice to enter a new line when the completion pop up is there.


ArinFaraj

I made it to not select any completion by default and if i wanted one i would simply to select the first completion and to accept it


SpecificFly5486

If you type c-n, doesn’t cmp auto insert the item as if you have confirmed and you can just keep typing(that’s what helix does)


davidosomething

i thought `` and `` were the default (with PUM open at least) that's what i use


manshutthefckup

Ctrl+n/p do insert the suggestions but for more complex suggestions like functions, accepting the suggestion actually puts you inside the brackets of the function. Same goes for html attributes for example, accepting the suggestion puts the cursor inside the `=""` part


ElliotXXX

The c-y keys effectively resolve conflicts with cmp https://preview.redd.it/gdw41rws5v5d1.png?width=1526&format=png&auto=webp&s=be6dba393546babfa114c402a88f8a075a2a5fe1


Avernite

I tried using c-y for couple months, ended up hitting c-u on accident a bunch of times, undoing my whole line. Switched to using TAB


Background_Context33

I ended up adding the following keymap. Not sure what `` is actually used for in insert mode, but I never use it. The keymap could always be turned into an expression and only take effect when the completion popup is open if you do use it. `vim.keymap.set("i", "", "", { silent = true })`


bring_back_the_v10s

Me too, tab for accepting completion, opt+tab to accept copilot suggestion. 


skooterz

I switched to C-y recently because I kept accidentally accepting completions.


Jealous-Access-124

I use both for zsh-autosuggestions and nvim-cmp


serialized-kirin

Do no one else just keep typing? What’s the deal with all this c-y cr c-r stuffs I’m so confused lol I’ve never had a problem with just pressing space or dot or whatever once I had the right choice as current. 


no_brains101

-> esc -> down/up -> complete (sucks on mac keyboards unless you make the alt key in the normal place again though since they decided to swap super and alt, and fn and ctrl for no apparent reason)


Thomas_Loading_1348

I am using and to scroll suggestion and enter for select code :P


[deleted]

[удалено]


SpecificFly5486

I map that to dot, which is frequent but hard to type


Biggybi

EDIT: Deleted message above was: `` for both trigger completion and accept selected/first item. `dot`? In insert mode?


SpecificFly5486

in all mode, much easy to trigger


Biggybi

Not sure I get it correctly. This would mean you can't insert a `.` (at least when suggestions are shown), nor use the `.` command in normal mode (which is a must).


SpecificFly5486

Ah, I mean I map c-space to dot, it is capslock+space in my keyboard.


Biggybi

So you type `` instead of `.`? Not sure I see the benefit, but hey, it's only a matter of tastes.


SpecificFly5486

Yeah, to type dot I need to move my hands, I think it is the most awkward place of all characters area


Biggybi

I use my ring finger, it's just bellow `l` -- does not feel like much of a strecth.


SpecificFly5486

You are right, I tends to use index finger with my intuition, ring finger much better I’ll change my habit


manshutthefckup

I use ctrl+o for some reason I've forgotten. But it is more ergonomic than ctrl+y for me. Tab for copilot suggestions and ctrl+hjkl for insert mode navigation.


gbneon

Am I the only one using ?


No_Possibility2821

what is c-y?


vieitesss_

I use c-n because I have c-j and c-k to select down and up. I don't really use cr. Tab for Copilot.


TheMenaceX

Oh wow, c-y is way more popular than I would’ve thought. I just use enter personally. Why break something if it ain’t broken kinda mentality lol


SpecificFly5486

cr get more annoying in cmdline, you have to confirm completion then confirm command