Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated arrow when trailing part of function prototype already comes with one #55

Closed
oblitum opened this issue Nov 10, 2018 · 2 comments

Comments

@oblitum
Copy link

oblitum commented Nov 10, 2018

echodoc.vim produces strange duplicated arrows if trailing part of function data already comes with a prepending arrow:

08 55 35_10-11-18

This happens when using ccls instead of clangd due to a hard-coded arrow at

call add(ret, {'text': ' -> '.v_comp.trailing})
.

@Shougo Shougo closed this as completed in c568323 Nov 10, 2018
@oblitum
Copy link
Author

oblitum commented Nov 10, 2018

@Shougo, c568323 forgets to add a default value for g:echodoc#highlight_trailing:

Error detected while processing function <SNR>53__on_cursor_moved[36]..7:
line   54:
E121: Undefined variable: g:echodoc#highlight_trailing

I think you did a typo,

let g:echodoc#highlight_type = get(g:,
      \ 'echodoc#highlight_type', 'Type')

should have been:

let g:echodoc#highlight_trailing = get(g:,
      \ 'echodoc#highlight_trailing', 'Type')

@Shougo
Copy link
Owner

Shougo commented Nov 10, 2018

I have fixed the typo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants