Git Product home page Git Product logo

Comments (13)

olimorris avatar olimorris commented on June 25, 2024 1

Firstly, thank you for your detailed feedback and config. It is greatly appreciated.

I agree with the majority of your changes and have addressed them in the latest commit. Some I have not included (detail and reasoning below).

The onedarkpro for vscode is adding unique style for each language. IMO, this repo should do the same.

Yes it does. I have actively thought about doing this and may look into it in the near future. Let me know if you make any progress. Always open to pull requests.

FYI, the hlgroups which I have kept the same are:

TSRepeat
Operator
Special

Reason being that they caused some difference in look between Neovim and VS Code in Ruby, Python and Javascript files which I don't have with their current values. Happy to be corrected and adjust them (could always be a setting I missed in my custom VS Code config).

But please let me know your thoughts on the changes. I've updated the readme screenshots too.

from onedarkpro.nvim.

mmirus avatar mmirus commented on June 25, 2024 1

Thanks both! I was able to remove a few of my customizations after updating.

I did prefer TSConstBuiltin = { fg = theme.colors.orange }, over the purple, though. See the end of the second line for why:

image

vs

image

from onedarkpro.nvim.

olimorris avatar olimorris commented on June 25, 2024 1

@mmirus, you sir, are a legend as always! Thanks for spotting

from onedarkpro.nvim.

olimorris avatar olimorris commented on June 25, 2024

Thanks for the feedback.

Could you let me know the highlights and colors that you've changed and I'll look into incorporating into the theme.

Regarding the italics, I'll caveat by saying in the readme I specify "Use the themes opinionated italic styles?" but there is a case for setting this to false by default.

from onedarkpro.nvim.

sinkyl avatar sinkyl commented on June 25, 2024
local colors = require("onedarkpro").get_colors("onedark")
...

colors = { 
   bg = "#282c34"
},


hlgroups = { 
   -- onedarkpro -> treesitter.lua plugin
   TSInclude = { fg = colors.purple, style = "NONE" },
   TSTypeBuiltin = { fg = colors.yellow },
   TSConstBuiltin = { fg = colors.purple },
   TSConstructor = { fg = colors.yellow },
   TSRepeat = { style = "NONE" },
   TSFuncMacro = { fg = colors.blue },
   TSParameterReference = { fg = colors.red },

   -- onedarkpro -> theme.lua
   Include = { fg = colors.purple },
   Function = { fg = colors.blue },
   Operator = { fg = colors.fg }, 
   Macro = { fg = colors.blue },
   Special = { fg = colors.fg },
   Structure = { fg = colors.purple },
   Identifier = { fg = colors.red },
   Typedef = { fg = colors.purple },
   Constant = { fg = colors.orange },
 }

Results:

  • Rust
    nvim
    nvr
    vscode
    vsr

  • C
    nvim
    nvc
    vscode
    vsc

  • C#
    nvim (The first in red is annoying. It should be yellow but TSVariables set it to red)
    nvcsharp
    vscode
    vscsharp

  • Go
    nvim (the functions in the interface are in red)
    nvgo
    vscode
    vsgo

  • Typescript is ok

  • Javascript is not

The onedarkpro for vscode is adding unique style for each language. IMO, this repo should do the same.
For now, I'm trying to add custom highlighters with treesitter/playground.
Nice work BTW.

from onedarkpro.nvim.

mmirus avatar mmirus commented on June 25, 2024

bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR112

@olimorris Typo here, I think 😉

Edit: also bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR93

from onedarkpro.nvim.

olimorris avatar olimorris commented on June 25, 2024

bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR112

@olimorris Typo here, I think 😉

Edit: also bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR93

I can't see where the typos are in the diff. In the readme?

from onedarkpro.nvim.

mmirus avatar mmirus commented on June 25, 2024

Maacro and Faunction in theme.lua:

Maacro = { fg = theme.colors.blue }, -- same as Define

from onedarkpro.nvim.

mmirus avatar mmirus commented on June 25, 2024

You got it!

from onedarkpro.nvim.

sinkyl avatar sinkyl commented on June 25, 2024

Ok for the highlights but the plugins are somehow always set to true event I change it to false.

This is not working:

   all = false,
   packer = true,
   treesitter = true,

or this

   packer = false,
   treesitter = false,

from onedarkpro.nvim.

olimorris avatar olimorris commented on June 25, 2024

Should now be fixed. I've had to apply some trickery to how we merge the default config with the user's custom config. End result is your test cases above now work.

from onedarkpro.nvim.

olimorris avatar olimorris commented on June 25, 2024

@sinkyl - Would you also be willing to try out the filetype_hlgroups branch?

I've got a WIP feature which allows you to add custom highlight groups for specific filetypes. Works great on my end (to overcome the TSField issue with yaml files) but keen to see your use cases and especially if you notice any performance issues.

from onedarkpro.nvim.

sinkyl avatar sinkyl commented on June 25, 2024

All good now.
I'll give a try later.
Thx 💯

from onedarkpro.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.