mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:9.1.1214: matchfuzzy() can be improved for camel case matches
Problem: When searching for "Cur", CamelCase matches like "lCursor" score
higher than exact prefix matches like Cursor, which is
counter-intuitive (Maxim Kim).
Solution: Add a 'camelcase' option to matchfuzzy() that lets users disable
CamelCase bonuses when needed, making prefix matches rank higher.
(glepnir)
fixes: vim/vim#16504
closes: vim/vim#16797
28e40a7b55
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
3
runtime/lua/vim/_meta/vimfn.lua
generated
3
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -5815,6 +5815,9 @@ function vim.fn.matchend(expr, pat, start, count) end
|
||||
--- given sequence.
|
||||
--- limit Maximum number of matches in {list} to be
|
||||
--- returned. Zero means no limit.
|
||||
--- camelcase Use enhanced camel case scoring making results
|
||||
--- better suited for completion related to
|
||||
--- programming languages. Default is v:true
|
||||
---
|
||||
--- If {list} is a list of dictionaries, then the optional {dict}
|
||||
--- argument supports the following additional items:
|
||||
|
||||
Reference in New Issue
Block a user