Skip to content

Commit ae6265d

Browse files
committed
add color for cmdline support
1 parent 71f6772 commit ae6265d

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

lua/easycomplete/cmdline.lua

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -475,21 +475,23 @@ this.REG_CMP_HANDLER = {
475475
end
476476
end
477477
},
478-
-- {
479-
-- -- highlight colors name
480-
-- patterns = {
481-
-- "^hi%s.*gui[fb]g=$",
482-
-- "^highlight%s.*gui[fb]g=$"
483-
-- },
484-
-- get_cmp_items = function()
485-
-- if this.insearch() then
486-
-- return this.get_normal_search_cmp()
487-
-- else
488-
-- local colors = this.native_colors
489-
-- return colors
490-
-- end
491-
-- end
492-
-- },
478+
{
479+
-- highlight colors name
480+
pattern = {
481+
"^hi%s.*gui[fb]g=$",
482+
"^hi%s.*gui[fb]g=%w+$",
483+
"^highlight%s.*gui[fb]g=$",
484+
"^highlight%s.*gui[fb]g=%w+$",
485+
},
486+
get_cmp_items = function()
487+
if this.insearch() then
488+
return this.get_normal_search_cmp()
489+
else
490+
local colors = this.native_colors
491+
return colors
492+
end
493+
end
494+
},
493495
{
494496
-- highlight color groups
495497
pattern = {

0 commit comments

Comments
 (0)