Code Monkey home page Code Monkey logo

Comments (10)

jemag avatar jemag commented on July 26, 2024 4

Just to add a bit of clarifications since my last message. neovim/neovim#22022 has now been merged and brings some changes to semantic token highlighting.

A good overview of how it works by the PR author can be found here: https://gist.github.com/swarn/fb37d9eefe1bc616c2a7e476c0bc0316

Here is a current screenshot of ayu-mirage on typescript:
image
And here is the difference if a theme supports semantic tokens (tokyonight):
image

Currently I only know of https://github.com/folke/tokyonight.nvim and https://github.com/rebelot/kanagawa.nvim having implemented it since PR, they could serve perhaps as inspiration.

Unfortunately, I am quite busy myself at the moment, but perhaps this information might help if someone wants to give it a try.

from neovim-ayu.

Shatur avatar Shatur commented on July 26, 2024 2

My personal preference is to try to follow colors from VSCode: https://github.com/ayu-theme/vscode-ayu

from neovim-ayu.

Shatur avatar Shatur commented on July 26, 2024 1

Thanks for the quick update @Shatur, is there any chance to have differentiating colors for parameters?

You can configure it on your side, see https://github.com/Shatur/neovim-ayu#overrides-examples. Or feel free to open a PR if you think that it's a nice default. I will use your branch for some time and merge if it or tweak colors.

from neovim-ayu.

Shatur avatar Shatur commented on July 26, 2024

Hi! I don't use nightly, but you can submit a PR with the suggestions. If you do, please provide screenshots :)

from neovim-ayu.

mohad12211 avatar mohad12211 commented on July 26, 2024

0.9 is now released with this feature, I have to disable it because the theme looks weird when it's enabled, any plans to work on this?

from neovim-ayu.

Shatur avatar Shatur commented on July 26, 2024

Didn't know about the release. I will update and take a look, thanks.

from neovim-ayu.

jemag avatar jemag commented on July 26, 2024

Thanks for the quick update @Shatur, is there any chance to have differentiating colors for parameters?
For example, instead of
image
and
image

It could look something like:
image
and
image

Obviously I just picked a random color there, but any that fits your taste would be fine. I just think that being able to differentiate between parameters and regular variables within a function can be nice.

from neovim-ayu.

mohad12211 avatar mohad12211 commented on July 26, 2024

yes, I actually had a plugin specifically for that https://github.com/m-demare/hlargs.nvim
I believe it's possible now with new features?

from neovim-ayu.

Shatur avatar Shatur commented on July 26, 2024

Yes, Neovim now supports it out of the box using LSP. Suggest colors, I will be happy to merge. See the last commit for what you need to change.

from neovim-ayu.

jemag avatar jemag commented on July 26, 2024

Created a PR for parameters with a different color: #30

from neovim-ayu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.