Skip to content

Conversation

@gepbird
Copy link
Contributor

@gepbird gepbird commented Jun 24, 2023

Before this PR, comments and keywords are changing colors when you load to file:

darkplus-pr.mp4

This PR makes comments always green without italic (just like in vscode) and treats builtin functions as functions so they are yellow.

Unfortunately variables that are used as functions (like hl in the video) are still changing colors. I assume neovim thinks it's a function because it has a ( next to it so it gives the yellow highlight, then treesitter says it's just a variable and changes it back to light blue. I believe if lua_ls recognized it being a function it wouldn't change colors and stay yellow.

darkplus-pr

Edit: removed "fix" for functions as it has been already implemented at d04d43d#diff-f6396e3ad2299402e37c1ffe426fc126f7c6bfc3ef40b49eed8ed657447a1442L127.

@gepbird gepbird force-pushed the fix-changing-colors branch from c8417fd to 639cb85 Compare January 2, 2024 00:12
@gepbird
Copy link
Contributor Author

gepbird commented Jan 2, 2024

I resolved the merge conflicts, feel free to take a look at this PR

@gepbird gepbird closed this by deleting the head repository Nov 11, 2025
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

Successfully merging this pull request may close these issues.

1 participant