Comments (7)
Similar setup with some tweaked colors
local onedarkpro = require('onedarkpro')
local utils = require('onedarkpro.utils')
local gray = utils.lighten('#000000', 0.1, '#1b1b1b')
onedarkpro.setup({
dark_theme = 'onedark_vivid',
colors = {
bg = '#000000',
color_column = gray,
telescope_prompt = utils.lighten('#000000', 0.01, '#101010'),
telescope_results = '#000000',
},
hlgroups = {
LineNr = gray,
SignColumn = gray,
Search = {
fg = '${black}',
bg = '${highlight}',
},
TelescopeBorder = {
fg = '${telescope_results}',
bg = '${telescope_results}',
},
TelescopePromptBorder = {
fg = '${telescope_prompt}',
bg = '${telescope_prompt}',
},
TelescopePromptCounter = { fg = '${fg}' },
TelescopePromptNormal = { fg = '${fg}', bg = '${telescope_prompt}' },
TelescopePromptPrefix = {
fg = '${green}',
bg = '${telescope_prompt}',
},
TelescopePromptTitle = {
fg = '${telescope_prompt}',
bg = '${green}',
},
TelescopePreviewTitle = {
fg = '${telescope_results}',
bg = '${green}',
},
TelescopeResultsTitle = {
fg = '${telescope_results}',
bg = '${telescope_results}',
},
TelescopeMatching = { fg = '${green}' },
TelescopeNormal = { bg = '${telescope_results}' },
TelescopeSelection = { bg = '${telescope_prompt}' },
},
plugins = {
all = true,
},
options = {
bold = true,
italic = true,
undercurl = true,
window_unfocussed_color = true,
},
styles = {
comments = 'italic',
keywords = 'italic',
},
})
vim.cmd('colorscheme onedarkpro')
from onedarkpro.nvim.
Had occasion to pop open some PHP code for the first time in a while, and thought I'd see how the theme compares to vscode. As it turns out, it's really close!
Here are a handful of changes I've made so far to match vscode more closely:
-- PHP
["@method.php"] = { fg = "${blue}", style = "bold" },
["@method.call.php"] = { link = "@method.php" },
["@function.builtin.php"] = { fg = "${cyan}" },
["@keyword.php"] = { fg = "${purple}", style = "NONE" },
["@keyword.return.php"] = { link = "@keyword.php" },
["@namespace.php"] = { fg = "${yellow}", style = "bold" },
from onedarkpro.nvim.
since you change the highlight configuration, can you update the highlight value?
from onedarkpro.nvim.
@NickP-real - I've updated my Telescope post for the new theme API
from onedarkpro.nvim.
Had occasion to pop open some PHP code for the first time in a while, and thought I'd see how the theme compares to vscode. As it turns out, it's really close!
Here are a handful of changes I've made so far to match vscode more closely:
-- PHP ["@method.php"] = { fg = "${blue}", style = "bold" }, ["@method.call.php"] = { link = "@method.php" }, ["@function.builtin.php"] = { fg = "${cyan}" }, ["@keyword.php"] = { fg = "${purple}", style = "NONE" }, ["@keyword.return.php"] = { link = "@keyword.php" }, ["@namespace.php"] = { fg = "${yellow}", style = "bold" },
Amazing! Would you consider a pr to add PHP support?
from onedarkpro.nvim.
Sure thing! See #118.
from onedarkpro.nvim.
I will probably come with some Meson fixes at some point, and I have it on my list to look at C. I know you got the structure of the code from nightfox or whatever, but this is really easy to do custom highlighting!
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.