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

Feature Request: Highlight Function Names (and/or names of classes, interfaces, etc.) #30

Open
smolck opened this issue Jul 8, 2019 · 4 comments
Assignees

Comments

@smolck
Copy link

smolck commented Jul 8, 2019

Function name highlighting is implemented in both rust.vim and vim-cpp-enhanced-highlight, and rust.vim has highlighting for names of structs too, which is really nice (would be highlighting of class/interface/etc. names here). I'm not sure if this is wanted in this particular plugin, but I figured I'd throw it out there since it helps readability and makes things look nicer IMHO.

This could be implemented multiple ways too. For example, python-syntax only highlights the names of functions when they are defined, but not called (as far as I've noticed). I think always highlighting function names (on both calls and definitions) looks nicer, but of course opinions on this will vary.

@udalov udalov self-assigned this Jul 8, 2019
@udalov
Copy link
Owner

udalov commented Jul 8, 2019

Personally, I prefer to avoid excessive highlighting when possible, so I wouldn't find this feature useful for my use cases. But I'm not opposed to contributions here if this functionality is disabled by default

@smolck
Copy link
Author

smolck commented Jul 8, 2019

But I'm not opposed to contributions here if this functionality is disabled by default

How you would you prefer that this sort of highlighting be enabled by the user? I.e. custom commands, let g:<insert name here> = 1 in .vimrc, etc?

@johnpyp
Copy link

johnpyp commented Nov 18, 2019

That is the way that vim-go does it. For example, in my .vimrc:

let g:go_highlight_types = 1 
let g:go_highlight_methods = 1
let g:go_highlight_function_calls = 1
let g:go_highlight_functions = 1
let g:go_highlight_function_parameters = 0
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_fields = 1
let g:go_highlight_format_strings = 1

@kerkmann
Copy link

Bump. That feature would be really awesome! ╰(˵ヘωヘ✿)╯

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

4 participants