Skip to content

Commit

Permalink
Fix #55 remove hardcoded trailing arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Nov 10, 2018
1 parent 3fa121e commit c568323
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions autoload/echodoc.vim
Expand Up @@ -14,6 +14,8 @@ let g:echodoc#highlight_identifier = get(g:,
\ 'echodoc#highlight_identifier', 'Identifier')
let g:echodoc#highlight_arguments = get(g:,
\ 'echodoc#highlight_arguments', 'Special')
let g:echodoc#highlight_type = get(g:,
\ 'echodoc#highlight_type', 'Type')
let g:echodoc#enable_force_overwrite = get(g:,
\ 'echodoc#enable_force_overwrite', 0)

Expand Down
5 changes: 4 additions & 1 deletion autoload/echodoc/default.vim
Expand Up @@ -66,7 +66,10 @@ function! s:default.search(cur_text, filetype) abort
call add(ret, {'text': ')'})

if has_key(v_comp, 'trailing') && !empty(v_comp.trailing)
call add(ret, {'text': ' -> '.v_comp.trailing})
call add(ret, {
\ 'text': v_comp.trailing,
\ 'highlight': g:echodoc#highlight_trailing
\ })
endif

return ret
Expand Down
6 changes: 6 additions & 0 deletions doc/echodoc.txt
Expand Up @@ -92,6 +92,12 @@ g:echodoc#highlight_arguments

Default: "Special"

g:echodoc#highlight_trailing
*g:echodoc#highlight_trailing*
The highlight of trailing.

Default: "Type"

g:echodoc#type *g:echodoc#type*
The documentation display type.
"echo": It uses the command line |:echo|.
Expand Down

0 comments on commit c568323

Please sign in to comment.