More complex behaviour for selection/confirmation using enter (basically more like vscode) #1879
Unanswered
johannesrld
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to replicate the behaviour of vscode when selecting items using
<CR>
?For anyone who doesn't know what I'm talking about in vscode if I have a completion available like this:
![image](https://private-user-images.githubusercontent.com/71744831/321377926-566b6316-e9c0-4e88-8d6a-4956410b89e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzcwOTQsIm5iZiI6MTczOTE3Njc5NCwicGF0aCI6Ii83MTc0NDgzMS8zMjEzNzc5MjYtNTY2YjYzMTYtZTljMC00ZTg4LThkNmEtNDk1NjQxMGI4OWU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA4Mzk1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjZTAyYjExN2RkM2RkOGU1NmNkNDhkODlmODNiMDRlMjZkODk5NDk4ODlhNTc5MGMwMDQ5NzE0YmQxOWVkY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xG3kgz-OuL_nnXy_66exFHcWKXd5fItl3jq2EU6adkI)
![image](https://private-user-images.githubusercontent.com/71744831/321378583-cb2a9bdf-2390-402c-b762-324a65c5324c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzcwOTQsIm5iZiI6MTczOTE3Njc5NCwicGF0aCI6Ii83MTc0NDgzMS8zMjEzNzg1ODMtY2IyYTliZGYtMjM5MC00MDJjLWI3NjItMzI0YTY1YzUzMjRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA4Mzk1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjMTdhZjZkYzI0NmNiNjU1NWY0ZDAyMDkyZWE4NmE0NTQ2OWMwOWZiMzU3Nzk0MmE0MzBmMzY1OGI3ZDJkYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qvHVZWb-tgYnLRtO-qma8iKWxSnrSQh_a5D4xpe0o1A)
pressing
<CR>
in this context would enter the completion and not move to the next line, while in the context of this image (where the completion is already fully spelt out anyways):pressing
<CR>
would move you to the next like as<CR>
usually doescurrently with my config if nvim-cmp has a completion shown (like while) and that completion is already fully spelt out in the buffer nvim-cmp will just close the completion list and not move you to the next line.
im aware that I might not have explain this well so if anyone who would like to help needs some clarification or a video or something please ask :)
Beta Was this translation helpful? Give feedback.
All reactions