nvim-cmp
nvim-cmp copied to clipboard
Request: case-sensitive completion
I'm using nvim-cmp for completing prose in a LaTeX Neovim config that I'm creating. I've created a dictionary of prose words, but I want autocompletion for it to be case-sensitive. Is there an option for this, or some way to override the matcher to force it to be case-sensitive?
It's already case-sensitive for non-Latin letters, unfortunately (for me).
I believe it is not possible (for alphanumeric strings) because matcher.lua
makes use of char.match
from https://github.com/hrsh7th/nvim-cmp/blob/d818fd0624205b34e14888358037fb6f5dc51234/lua/cmp/utils/char.lua#L109-L115 which is explicitly case insensitive.
https://github.com/hrsh7th/nvim-cmp/blob/d818fd0624205b34e14888358037fb6f5dc51234/lua/cmp/matcher.lua#L27
nvim-cmp uses case-sensitive as scoring.