Comments (13)
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.
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:
vs
from onedarkpro.nvim.
@mmirus, you sir, are a legend as always! Thanks for spotting
from onedarkpro.nvim.
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.
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:
-
C#
nvim (The first in red is annoying. It should be yellow but TSVariables set it to red)
vscode
-
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.
bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR112
@olimorris Typo here, I think 😉
Edit: also bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR93
from onedarkpro.nvim.
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.
Maacro
and Faunction
in theme.lua
:
onedarkpro.nvim/lua/onedarkpro/theme.lua
Line 112 in bde2f18
onedarkpro.nvim/lua/onedarkpro/theme.lua
Line 93 in bde2f18
from onedarkpro.nvim.
You got it!
from onedarkpro.nvim.
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.
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.
@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.
All good now.
I'll give a try later.
Thx 💯
from onedarkpro.nvim.
Related Issues (20)
- Cursor line changes the highlight of folded text. HOT 3
- different token color for constant variables (just like vscode) HOT 7
- Enhancement: Custom Treesitter queries HOT 21
- Transparency not working with iTerm2 on macOS HOT 1
- [Bug]: Custom queries override sane defaults HOT 2
- [Bug]: Can't override colors HOT 8
- Highlight DiffChange HOT 1
- [Bug]: missing comma in minimal config for bug reports
- [Bug]: @lsp.type.comment.lua overrides @text.uri.comment HOT 10
- [Bug]: Onedarkpro's highlights get overriden by typescript-language-server. HOT 15
- [Bug]: fixme/todos from comment parser overriden by semantic tokens in lua HOT 10
- Built-in linking takes precedence over the values set in the setup function HOT 2
- [Bug]: Very low contrast/unreadable text with light variant of the colorscheme HOT 11
- [Bug]: Error when setting `Comment` highlights (for the first time)? HOT 6
- [Bug]: Rust `#![attributes]` are not highlighted HOT 3
- [Bug]: onedark_dark floating panels indistinguishable HOT 8
- [Bug]: No Markdown Highlighting HOT 5
- [Bug]: lualine background has disappeared HOT 3
- [Bug]: missing treesitter-based highlight for JS/TS properties after breaking nvim-treesitter update HOT 5
- [Bug]: TS/TSX treesitter errors + broken syntax highlighting with onedark and latest nvim-treesitter HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedarkpro.nvim.