Skip to content

FuDesign2008/asyncomplete-smart-fuzzy.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

asyncomplete-smart-fuzzy.vim

Smart-case fuzzy filter for asyncomplete

Smart-Case

The asyncomplete.vim use matchfuzzypos to support fuzzy compeletion (see prabirshrestha/asyncomplete.vim#137), but matchfuzzypos does not support smart-case, so this plugin add smart-case fuzzy completion.

Filtering is "smart-case" sensitive; if you are typing only lowercase letters, then it's case-insensitive. If your input contains uppercase letters, then the uppercase letters in your query must match uppercase letters in the completion strings (the lowercase letters still match both).

matches foo fOo
foo ✔️
fOo ✔️ ✔️

Usage

  1. Just install this vim plugin
    • Need matchfuzzypos() support in vim, run exists('*matchfuzzypos') or help matchfuzzypos to see more.
  2. Enjoy smart-case completion

Config

  1. g:asf_min_num_of_chars_for_completion: default value is 2

Changelog

  1. 2023-07-07
    • add g:asf_min_num_of_chars_for_completion
    • modify smart case match logic

About

Smart-case fuzzy filter for asyncomplete

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published