Git Product home page Git Product logo

Comments (4)

rmehri01 avatar rmehri01 commented on July 21, 2024 1

Okay sorry for the delay, I've decided to revert these changes since I guess it's okay that the two aren't perfectly consistent and there are other ways to fix the semantic token highlighting.

from onenord.nvim.

rmehri01 avatar rmehri01 commented on July 21, 2024

Hi, sorry about that, I was trying to make it more consistent with treesitter for example when namespacing a function. In Rust the base syntax Include is also used for both the imports and uses vs treesitter using @namespace and @struct.

Base syntax before change:

image

Base syntax after change:

image

Treesitter highlight:

image

You can always change custom highlights doing the following:

      local colors = require("onenord.colors").load()
      require("onenord").setup({
        custom_highlights = {
          Include = { fg = colors.blue },
        },
      })

This one just changes the namespaces but feel free to customize anything else to your liking 😄

from onenord.nvim.

Freyskeyd avatar Freyskeyd commented on July 21, 2024

This issue seems to need to be re-open as I see some new issues on some code highlight cc @rmehri01

from onenord.nvim.

rmehri01 avatar rmehri01 commented on July 21, 2024

Hi, did you upgrade to neovim 0.9 recently? If so, this is probably due to LSP semantic tokens. You can check it out under :h lsp-semantic-highlight or disable it using something like client.server_capabilities.semanticTokensProvider = nil in your on_attach.

from onenord.nvim.

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.