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

Fix changing colors #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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