-
-
Notifications
You must be signed in to change notification settings - Fork 109
Option to let blink-cmp autocomplete keep the capitalization of the currently typed word. #845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Update, I have a code snippet that mostly works, with an edge case. If the current line was created with a command like o, as opposed to entering from the previous line, and the first letter of the word is right at the start of the line, the suggestion will ignore the case you use. I don't know why this happens.
This is sloppy, mostly AI generated code. There is likely a better way to get this working for now. |
🏷️ Feature Type
API Additions
🔖 Feature description
When writing, the blink-cmp buffer autocomplete looks at the words in the buffer and provides auto completion capabilities with those. However, it will replace the currently typed word with one with a different capitalization, if the word in the buffer had that capitalization. Specifically keeping the first letter might be the most practical. This is what blink-cmp's documentation suggests. The case for this being built in is that using neovim to write is quite popular, and there are very few edge cases to decide not to enable this feature. The second reason is that the alternative solution (which I haven't gotten to work) would be ugly (as blink-cmp's example shows.
To provide an example use case of this issue, if I wanted to auto complete the word however (used above), with the buffer being the text above, it would complete to However, not however. Especially with words like capitalization, typing it out is unnecessarily inefficient.
✔️ Solution
I would like an option to enable the previously described functionality. I don't know what the ideal implementation details would be.
❓ Alternatives
Blink-cmp offers a bit of a hacky solution as described above. Here is my attempt of getting this to work. Does not work!
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: