Skip to content

Commit ed18c00

Browse files
committed
bugfix for #378
1 parent b22c726 commit ed18c00

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

autoload/easycomplete/pum.vim

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ endfunction
9292
" vscode 提供了超过五种 kind 颜色配置,把 lsp 和 text
9393
" 区分开,这里设置6种常见的颜色配置:
9494
" 6种颜色做隔离足够了,ColorScheme 常用颜色一般也就八九个
95-
" EasyFunction: "%", Function/Constant/Scruct
95+
" EasyFunction: "", Function/Constant/Scruct
9696
" EasySnippet: "∫", Snippet/snip
97-
" EasyTabNine: "@", TabNine
97+
" EasyTabNine: "", TabNine
9898
" EasyNormal: "Φ", Buf/Text/dict - Pmenu 默认色
9999
" EasyKeyword: "♧", Keyword
100100
" EasyModule: "♤", module
@@ -145,9 +145,9 @@ function! s:hl()
145145
\ 'syntax region CustomFuzzyMatch matchgroup=Conceal start=/\%(§§\)\@!§/ matchgroup=Conceal end=/\%(§§\)\@!§/ concealends oneline keepend',
146146
\ 'syntax region CustomExtra matchgroup=Conceal start=/\%(‰‰\)\@!‰/ matchgroup=Conceal end=/\%(‰‰\)\@!‰/ concealends oneline',
147147
\ 'syntax region CustomKind matchgroup=Conceal start=/ϟ\([^ϟ]ϟ\)\@=/ matchgroup=Conceal end=/\(ϟ[^ϟ]\)\@<=ϟ/ concealends oneline',
148-
\ 'syntax region CustomFunction matchgroup=Conceal start=/%\([^%]%\)\@=/ matchgroup=Conceal end=/\(%[^%]\)\@<=%/ concealends oneline',
148+
\ 'syntax region CustomFunction matchgroup=Conceal start=/\([^⊥]⊥\)\@=/ matchgroup=Conceal end=/\(⊥[^⊥]\)\@<=/ concealends oneline',
149149
\ 'syntax region CustomSnippet matchgroup=Conceal start=/∫\([^∫]∫\)\@=/ matchgroup=Conceal end=/\(∫[^∫]\)\@<=∫/ concealends oneline',
150-
\ 'syntax region CustomTabNine matchgroup=Conceal start=/@\([^@]@\)\@=/ matchgroup=Conceal end=/\(@[^@]\)\@<=@/ concealends oneline',
150+
\ 'syntax region CustomTabNine matchgroup=Conceal start=/\([^∮]∮\)\@=/ matchgroup=Conceal end=/\(∮[^∮]\)\@<=/ concealends oneline',
151151
\ 'syntax region CustomKeyword matchgroup=Conceal start=/♧\([^♧]♧\)\@=/ matchgroup=Conceal end=/\(♧[^♧]\)\@<=♧/ concealends oneline',
152152
\ 'syntax region CustomModule matchgroup=Conceal start=/♤\([^♤]♤\)\@=/ matchgroup=Conceal end=/\(♤[^♤]\)\@<=♤/ concealends oneline',
153153
\ 'syntax region CustomNormal matchgroup=Conceal start=/Φ\([^Φ]Φ\)\@=/ matchgroup=Conceal end=/\(Φ[^Φ]\)\@<=Φ/ concealends oneline',
@@ -1135,9 +1135,9 @@ function! s:MaxLength(lines)
11351135
let max_length = 0
11361136
for item in a:lines
11371137
let remove_style_wrapper = item
1138-
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s%\[^%\]%\\s", " x ", "g")
1138+
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s\[^\]\\s", " x ", "g")
11391139
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s∫\[^∫\]\\s", " x ", "g")
1140-
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s@\[^@\]@\\s", " x ", "g")
1140+
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s\[^\]\\s", " x ", "g")
11411141
let remove_style_wrapper = substitute(remove_style_wrapper, "\\\[\]Φ\\s", " x ", "g")
11421142
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s♧\[^♧\]\\s", " x ", "g")
11431143
let remove_style_wrapper = substitute(remove_style_wrapper, "\\s♤\[^♤\]\\s", " x ", "g")
@@ -1162,14 +1162,14 @@ function! s:MapFunction(key, val)
11621162
\ kind_o ==# g:easycomplete_lsp_type_font["constant"] ||
11631163
\ kind_o ==# g:easycomplete_lsp_type_font["struct"]
11641164
" 颜色1
1165-
let kind_char = "%"
1165+
let kind_char = ""
11661166
elseif kind_o ==# g:easycomplete_menu_skin["snip"]["kind"] ||
11671167
\ kind_o ==# g:easycomplete_lsp_type_font["snippet"]
11681168
" 颜色2
11691169
let kind_char = ""
11701170
elseif kind_o ==# g:easycomplete_menu_skin["tabnine"]["kind"]
11711171
" 颜色3
1172-
let kind_char = "@"
1172+
let kind_char = ""
11731173
elseif kind_o ==# g:easycomplete_menu_skin["buf"]["kind"] ||
11741174
\ kind_o ==# g:easycomplete_menu_skin["dict"]["kind"] ||
11751175
\ kind_o ==# g:easycomplete_lsp_type_font["text"]

0 commit comments

Comments
 (0)