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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTUzODIsIm5iZiI6MTcyMTgxNTA4MiwicGF0aCI6Ii83MTc0NDgzMS8zMjEzNzc5MjYtNTY2YjYzMTYtZTljMC00ZTg4LThkNmEtNDk1NjQxMGI4OWU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDA5NTgwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1YzE5NTRkMzU3MTUwOTE1NTkyYjQ1YmM4Y2U3ZDk4YWMzYjI0MWI5MmRmNDhkYzBmNjVhZDlmZjllYWY4ZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hMA3rU6Rm-KbHXO7nLWupTertX_jsM29tuq82-2JTo4)
![image](https://private-user-images.githubusercontent.com/71744831/321378583-cb2a9bdf-2390-402c-b762-324a65c5324c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTUzODIsIm5iZiI6MTcyMTgxNTA4MiwicGF0aCI6Ii83MTc0NDgzMS8zMjEzNzg1ODMtY2IyYTliZGYtMjM5MC00MDJjLWI3NjItMzI0YTY1YzUzMjRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDA5NTgwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkyNjQ5NDhiZjlmMzVmM2MyOTkzMGRjZmQ5NmFiZjc2NTQxZjhmMDRkMTQwNWYxY2ViYzE1NThkMjg2ZjQxZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._rTvzGr1fYfStl4pGh-PJfUEvyGkUVy-T3byFhTDurQ)
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