summaryrefslogtreecommitdiffstats
path: root/src/option.h
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-06-19 20:20:48 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-19 20:25:01 +0200
commit43eef882ff42e673af1e753892801ba20c5d002a (patch)
tree9af6e3ac6997ee065d8863553bc57a1f49c1fd73 /src/option.h
parent94c5d8a5e20e1dd8c9e8434ee14e368276644f61 (diff)
patch 9.1.0503: cannot use fuzzy keyword completionv9.1.0503
Problem: cannot use fuzzy keyword completion (Maxim Kim) Solution: add the "fuzzycollect" value for the 'completeopt' setting, to gather matches using fuzzy logic (glepnir) fixes: #14912 closes: #14976 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/option.h')
-rw-r--r--src/option.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/option.h b/src/option.h
index 91d8d95c5b..67d0b04620 100644
--- a/src/option.h
+++ b/src/option.h
@@ -520,13 +520,14 @@ EXTERN unsigned cot_flags; // flags from 'completeopt'
#define COT_ANY_MENU 0x003 // combination of menu flags
#define COT_LONGEST 0x004 // FALSE: insert full match,
// TRUE: insert longest prefix
-#define COT_PREVIEW 0x008
-#define COT_POPUP 0x010
-#define COT_POPUPHIDDEN 0x020
-#define COT_ANY_PREVIEW 0x038 // combination of preview flags
-#define COT_NOINSERT 0x040 // FALSE: select & insert, TRUE: noinsert
-#define COT_NOSELECT 0x080 // FALSE: select & insert, TRUE: noselect
-#define COT_FUZZY 0x100 // TRUE: fuzzy match enabled
+#define COT_PREVIEW 0x008
+#define COT_POPUP 0x010
+#define COT_POPUPHIDDEN 0x020
+#define COT_ANY_PREVIEW 0x038 // combination of preview flags
+#define COT_NOINSERT 0x040 // FALSE: select & insert, TRUE: noinsert
+#define COT_NOSELECT 0x080 // FALSE: select & insert, TRUE: noselect
+#define COT_FUZZY 0x100 // TRUE: fuzzy match enabled
+#define COT_FUZZYCOLLECT 0x200 // TRUE: fuzzy collect enabled
#ifdef BACKSLASH_IN_FILENAME
EXTERN char_u *p_csl; // 'completeslash'
#endif