Comments (6)
Please excuse me further commenting on a closed issue, but the only way I've been able to make the color overrides work (using the colors from the colorscheme as opposed to the hexadecimal colors) is to do the following:
local colors = require('ayu.colors')
colors.generate(true) -- this is where the "fix" is; true because I want mirage
require('ayu').setup({
mirage = true,
overrides = {
TSInclude = {fg = colors.tag},
IncSearch = {fg = '#FFFFFF'}
}
})
require('ayu').colorscheme()
The colors.generate
gets called in the call to colorscheme()
, but I can't call that before the setup()
otherwise it won't honor the overrides. Thus this is the other option:
require('ayu').colorscheme() -- call before and after the setup
local colors = require('ayu.colors')
require('ayu').setup({
mirage = true,
overrides = {
TSInclude = {fg = colors.tag},
IncSearch = {fg = '#FFFFFF'}
}
})
require('ayu').colorscheme()
Perhaps I am doing something incorrect, which necessitates the above?
from neovim-ayu.
@benewberg you are right,you need to call generate
first. I will add this to readme.
from neovim-ayu.
Thanks, now should work, I just made a typo :)
from neovim-ayu.
Overriding still seems to not be working if the variable wasn't declared before?
I'm trying to override TreeSitter faces:
require('ayu').setup({
mirage = true,
overrides = {
TSInclude = { fg = colors.tag },
IncSearch = {fg = '#FFFFFF'}
}
})
IncSearch seems to work, but not TSInclude...
from neovim-ayu.
Overriding still seems to not be working if the variable wasn't declared before?
It works, you can specify new values. Just tested, the new TSInclude
appears. Try debugging using so $VIMRUNTIME/syntax/hitest.vim
.
from neovim-ayu.
@benewberg - confirmed putting this line applies the desired colours.
from neovim-ayu.
Related Issues (20)
- Remove tilde signs HOT 2
- Visual mode highlighted text in dark theme HOT 1
- Cross-post: invisible cursor while using lightspeed or leap HOT 6
- Treesitter removed TS* highlight groups HOT 2
- Numbers are not colored HOT 1
- W18: Invalid character in group name HOT 5
- No highlighting tags groups (treesietter groups) HOT 3
- nvim: ayu mirage: invalid argument HOT 1
- Override does not change colors as expected HOT 2
- CursorLine not applying to texts HOT 7
- Normal background removal causes problems HOT 2
- Support semantic tokens explicitly HOT 10
- Feature-request: transparent bg option HOT 1
- Better markdown support HOT 1
- How to make background color of the editor window black? HOT 3
- Feature request: dim inactive windows HOT 1
- Add highlight for WinSeparator HOT 3
- Add support for `nvim-treesitter-context` HOT 1
- Some elements in Tmux got background HOT 1
- lualine example in README.MD HOT 1
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 neovim-ayu.