@@ -15,11 +15,11 @@ local opts = {
1515		[" <C-c>" =  { " cancel" " hide" " fallback"  
1616
1717		[" <C-space>" =  { " show" " show_documentation" " hide_documentation"  
18- 		[" <S-k >" =  { " scroll_documentation_up" " fallback"  
19- 		[" <S-j >" =  { " scroll_documentation_down" " fallback"  
20- 		[" <S-s >" =  { " show_signature" " hide_signature" " fallback"  
18+ 		[" <C-h >" =  { " scroll_documentation_up" " fallback"  
19+ 		[" <C-l >" =  { " scroll_documentation_down" " fallback"  
20+ 		[" <C-k >" =  { " show_signature" " hide_signature" " fallback"  
2121	},
22- 	---   @typeblink.cmp.CmdlineConfig 
22+ 	--- @type  blink.cmp.CmdlineConfig 
2323	cmdline  =  {
2424		enabled  =  true ,
2525		sources  =  function ()
@@ -33,10 +33,10 @@ local opts = {
3333			return  {}
3434		end ,
3535		keymap  =  {
36- 			preset  =  " enter " 
36+ 			preset  =  " cmdline " 
3737			[" <Tab>" =  { " select_next" " fallback"  
3838			[" <S-Tab>" =  { " select_prev" " fallback"  
39- 			[" <CR>" =  { " accept " " fallback"  
39+ 			[" <CR>" =  { " accept_and_enter " " fallback"  
4040			[" <C-c>" =  { " cancel" " hide" " fallback"  
4141		},
4242		completion  =  {
@@ -54,21 +54,8 @@ local opts = {
5454			ghost_text  =  { enabled  =  true  },
5555		},
5656	},
57- 	---  @type  blink.cmp.TermConfig 
5857	term  =  {
5958		enabled  =  false ,
60- 		sources  =  {},
61- 		completion  =  {
62- 			menu  =  {
63- 				draw  =  {
64- 					columns  =  {
65- 						{ " label" " label_description" gap  =  1  },
66- 						{ " kind_icon" " kind" gap  =  1  },
67- 						{ " source_name"  
68- 					},
69- 				},
70- 			},
71- 		},
7259	},
7360
7461	appearance  =  {
@@ -82,11 +69,18 @@ local opts = {
8269		accept  =  {
8370			auto_brackets  =  {
8471				enabled  =  true ,
72+ 				kind_resolution  =  {
73+ 					enabled  =  true ,
74+ 				},
75+ 				semantic_token_resolution  =  {
76+ 					enabled  =  true ,
77+ 					blocked_filetypes  =  { " java"  
78+ 				},
8579			},
8680		},
8781		list  =  {
8882			selection  =  {
89- 				preselect  =  false ,
83+ 				preselect  =  true ,
9084				auto_insert  =  false ,
9185			},
9286		},
@@ -100,6 +94,16 @@ local opts = {
10094					{ " kind_icon" " kind" gap  =  1  },
10195					{ " source_name"  
10296				},
97+ 				components  =  {
98+ 					label  =  {
99+ 						text  =  function (ctx )
100+ 							return  require (" colorful-menu" blink_components_text (ctx )
101+ 						end ,
102+ 						highlight  =  function (ctx )
103+ 							return  require (" colorful-menu" blink_components_highlight (ctx )
104+ 						end ,
105+ 					},
106+ 				},
103107			},
104108		},
105109		documentation  =  {
@@ -112,6 +116,8 @@ local opts = {
112116		},
113117		ghost_text  =  {
114118			enabled  =  true ,
119+ 			show_with_selection  =  true ,
120+ 			show_with_menu  =  true ,
115121		},
116122	},
117123
@@ -177,6 +183,23 @@ local opts = {
177183			show_documentation  =  true ,
178184		},
179185	},
186+ 	--  fuzzy = {
187+ 	--  	implementation = "prefer_rust_with_warning",
188+ 	--  	-- Set this to 0 to match the behavior of fzf
189+ 	--  	max_typos = function(keyword)
190+ 	--  		return math.floor(#keyword / 4)
191+ 	--  	end,
192+ 	--  	use_frecency = true,
193+ 	--  	use_proximity = true,
194+ 	--  	sorts = {
195+ 	--  		"score",
196+ 	--  		"sort_text",
197+ 	--  	},
198+ 	--  	prebuilt_binaries = {
199+ 	--  		download = true,
200+ 	--  		ignore_version_mismatch = false,
201+ 	--  	},
202+ 	--  },
180203}
181204
182205return  function ()
0 commit comments