Skip to content

go: split definition and call highlights for functions, methods, and types#49120

Merged
ConradIrwin merged 1 commit intozed-industries:mainfrom
tvi:tvi/go-defs
Feb 19, 2026
Merged

go: split definition and call highlights for functions, methods, and types#49120
ConradIrwin merged 1 commit intozed-industries:mainfrom
tvi:tvi/go-defs

Conversation

@tvi
Copy link
Contributor

@tvi tvi commented Feb 13, 2026

This allows definitions to use a different highlight than function calls.

Release Notes:

  • go: Add definition highlights for functions, methods, and types

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 13, 2026
@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 13, 2026
@ConradIrwin
Copy link
Member

Thanks! Can you please share screenshots of before and after in the default theme?

…types

This allows definitions to use a different highlight than function calls.
@tvi tvi changed the title go: Add definition highlights for functions, methods, and types go: split definition and call highlights for functions, methods, and types Feb 15, 2026
@tvi
Copy link
Contributor Author

tvi commented Feb 15, 2026

Hi @ConradIrwin ; I switched it from .defintion to make calls .call to be more consistent with python highlights.

Default themes only specify "function":{ so nothing changes for any of those 3 themes. But I am attaching screenshots for one dark.

Original:
original

Updated:
updated

@ConradIrwin ConradIrwin enabled auto-merge (squash) February 19, 2026 15:43
@zed-industries-bot
Copy link
Contributor

Warnings
⚠️
go: split definition and call highlights for functions, methods, and types
    ^

Write PR titles using sentence case.

Have feedback on this plugin? Let's hear it!

Generated by 🚫 dangerJS against c84f27a

@ConradIrwin
Copy link
Member

Thanks

@ConradIrwin ConradIrwin merged commit 712914a into zed-industries:main Feb 19, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants