liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags
https://liuchengxu.github.io/vista.vim
MIT License
1.88k stars 89 forks source link

Fix Fuzzy Finder search when element contains colon #414

Closed jakubgros closed 2 years ago

jakubgros commented 2 years ago

LSP objects in Vista during FZF search are displayed as

:. In the Fuzzy Finder search we wanted search only over the part. It was achieved by defining search target as everything up to the first colon. Such behavior was problematic in languages like C++, where colon is a valid character for LSP object name (it's denoting namespaces). For names like MyNamespace::MyClass::method fuzzy finding didn't work properly and we could only search by the text up to first colon. The problem was fixed by changing the line number delimiter to be the last colon.