Skip to content

Commit

Permalink
add highlight for GoDecls fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
110y committed Nov 10, 2019
1 parent 041ca96 commit cd87c0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload/fzf/decls.vim
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ function! s:source(mode,...) abort
\ decl.col
\)
call add(ret_decls, printf("%s\t%s %s\t%s",
\ s:color(decl.ident . space, "Function"),
\ s:color(decl.keyword, "Keyword"),
\ s:color(pos, "SpecialComment"),
\ s:color(decl.full, "Comment"),
\ s:color(decl.ident . space, "goDeclsFzfKeyword"),
\ s:color(decl.keyword, "goDeclsFzfFunction"),
\ s:color(pos, "goDeclsFzfSpecialComment"),
\ s:color(decl.full, "goDeclsFzfComment"),
\))
endfor

Expand Down
5 changes: 5 additions & 0 deletions syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ hi def link goCoverageNormalText Comment
function! s:hi()
hi def link goSameId Search

hi def link goDeclsFzfKeyword Keyword
hi def link goDeclsFzfFunction Function
hi def link goDeclsFzfSpecialComment SpecialComment
hi def link goDeclsFzfComment Comment

" :GoCoverage commands
hi def goCoverageCovered ctermfg=green guifg=#A6E22E
hi def goCoverageUncover ctermfg=red guifg=#F92672
Expand Down

0 comments on commit cd87c0a

Please sign in to comment.