Comments (13)
As an FYI both, I've now added a onedark_vivid
them as per this commit:
require("onedarkpro").setup {
theme = "onedark_vivid",
}
from onedarkpro.nvim.
I've closed this and pinned it to the top of issues
so it will stand out more to other users
from onedarkpro.nvim.
It seems that is the case. I did a bunch of testing and it does work but does not persist. I seemingly have to change :colorscheme
back (to a different theme) and forth to see the custom setup, otherwise it defaults to the default setup values. It was hard to tell because quitting and relaunching Lunarvim
didn't change the outcome, also TS-rainbow seems to get disabled.
Thanks again for your help. It's definitely related to my setup so I'll look to find a solution.
Config
Outcome
from onedarkpro.nvim.
I thought I'd put this here in case a search engine brings someone to this issue.
I solved it. It was more my misunderstanding of the structure of LunarVim's config files and Lua.
The setup needs to be added outside the scope of lvim.plugins to persist.
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
-- general
lvim.log.level = "warn"
lvim.format_on_save = true
-- lvim.colorscheme = "one"
-- lvim.colorscheme = "onedarker"
lvim.colorscheme = "onedarkpro"
-- Theme options
require("onedarkpro").setup {
theme = "onedark",
-- colors = {
-- red = "#d1d1d1"
-- },
styles = {
functions = "italic",
keywords = "italic",
virtual_text = "italic,underline",
},
}
from onedarkpro.nvim.
Thank you!
from onedarkpro.nvim.
Hi @olimorris I'm fairly new to nvim and Lua and looking to change the color of "variables" (assigned) in my config and I'm not sure how. I've tried;
{ "olimorris/onedarkpro.nvim",
config = function()
require("onedarkpro").setup {
theme = "onedark",
colors = {
red = "#97f4c9"
},
}
end
},
..but couldn't get it to work. What am I missing?
from onedarkpro.nvim.
..but couldn't get it to work. What am I missing?
Have you tried this at the end of your config:
onedarkpro.load()
from onedarkpro.nvim.
I'm using Lunarvim and I believe it loads the plugin. It also shows that it is installed in PackerStatus.
I have also tried to add the function call in my config;
It unfortunately still doesn't change the red variable colour in my code.
from onedarkpro.nvim.
Hmmmm. Seems strange. Have you tried adding @mmirus config specifically like below:
local onedarkpro = require('onedarkpro')
onedarkpro.setup({
theme = "onedark",
colors = {
onedark = {
-- Vivid colors from https://github.com/Binaryify/OneDark-Pro
red = "#ef596f",
green = "#89ca78",
cyan = "#2bbac5",
purple = "#d55fde",
},
}
If you nest a onedark
table within the colors
table. That shouldn't actually make a difference but good to rule it out.
Otherwise, I suspect another theme or option is overwriting the TSVariable
highlight group (assuming you're using Treesitter). What does :hi TSVariable
show?
from onedarkpro.nvim.
Nesting onedark
does not change the colors.
I am using Treesitter, :hi TSVariable
shows TSVariable xxx guifg=#e06c75
. This is using mmirus’ config.
I also tried disabling all other additional plugins to no avail.
I’ll keep trying to sort it out, I now have a better understanding of how Treesitter works. Thank you!
from onedarkpro.nvim.
I'm at a loss to explain it other than there must be something, somewhere in your config which is not applying the change. Are you sure LunarVim
is definately applying the theme?
I've just tried it in my config and this is the outcome:
Config
Outcome
from onedarkpro.nvim.
Very cool--thank you! I was able to replace my vivid overrides with dark_theme = "onedark_vivid"
and my remaining onedark
overrides (unrelated to making things more vivid) kept working.
It may be counterintuitive, but I may go back to the darken
ed versions of the virtual text. 2f931d2#diff-708b067690c963ab0c5a4dec1eb8f6c0e1f7cda3a447538280b3bde6cd7ffb47 I kind of like having the diagnostic info fade into the background a bit--readable when I need it, but not competing with the code for attention.
I can see other people wanting the opposite, though: "If there's a diagnostic, I want it to be yelling for attention so I deal with it right away."
from onedarkpro.nvim.
Awesome! Still a little bit of work I need to do on the internal API to add new themes but mostly there
from onedarkpro.nvim.
Related Issues (20)
- [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
- [Bug]: No highlight for selected complition in nvim-cmp with onedark_dark. HOT 4
- [Bug]: Change highlight on yank doesn't work. HOT 6
- [Bug]: Not an editor command: require("onedarkpro").setup HOT 3
- [Bug]: Transparent background not applied HOT 5
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.