Comments (9)
HI~ @marko-cerovac
After my test, your latest commit did work a bit and see the flash(from original highlight to your theme config) for less time. I think the async loading make this no perfect phenomenon.
I can add some code in my init.vim and work a bit for me.
colorscheme material
autocmd FileType Dashboard hi! link DashboardHeader Boolean
But it does not work for fist time into Dashboard.
BTW, what is async loading effects? If without async loading, will it take more time to startup?
from material.nvim.
After trying removing async code, it seems work perfectly even for the first time into dashboard.
And i don't need autocmd anymore. I can config any highlight as I want.
Try it!!!
from material.nvim.
You are so nice.Thanks a lot.
from material.nvim.
I'm currently trying to solve this and I've noticed something weird. Even when I prevent my colorscheme from setting Dashboard colors, I still can't configure highlights from init.vim
For some reason, dashboard just doesn't accept highlight commands from init.vim. It is possible that this is an issue with dashboard and not material.nvim. I'll keep working on this
from material.nvim.
From my phenomenon, I think it maybe the the async highlight thread cause this issue, because I can see dashboard with its own highlight for 0.5 second and then turn to material.nvim configuration.
However, I know too little about Lua and maybe one month later, I have time to dig in~~~
FYI, your work is so pretty that I can read codes more pleasantly!
Keep charming~~
from material.nvim.
Thanks, that means a lot!
I've just moved the dashboard highlights to load as soon as possible. Let me know if you can change the colors now. If you still can't set the highlights, that means it's probably not related to the async loading.
from material.nvim.
Ok, that's great. You have found the source of the problem and it does seem to be the async loading.
The async loading is used to improve the start-up time. The most important parts of NeoVim like the background, numbers, borders... get loaded first and the less important things like plugin highlights get loaded later. This speeds up the startup time a lot.
If you want, I can create a new branch which doesn't use async loading. You can then install from this new branch and everything should work fine. Does this solution seem okay to you?
from material.nvim.
You are so nice.Thanks a lot.
from material.nvim.
@Young1783 I've created the new branch. It is called no-async and it doesn't use any async loading. If you are using packer.nvim, you can install it using:
use {
'marko-cerovac/material.nvim',
branch = 'no-async'
}
or if you are using VimPlug:
Plug 'marko-cerovac/material.nvim', { 'branch' : 'no-async'}
from material.nvim.
Related Issues (20)
- Add support for vim help. HOT 6
- contrast.filetypes not working for toggleterm HOT 9
- vim.g.material_style doesn't work HOT 2
- Italic style configuration not being applied to treesitter @keyword nodes HOT 1
- Semantic Tokens not handled correctly HOT 1
- Neogit switch not highlighted HOT 4
- Editor: fold text contrast HOT 5
- Search and IncSearch bg may change to e.highlight HOT 2
- Feature: Add neorg support HOT 3
- printing "Material style" interferes with startup HOT 4
- Could the different styles not be part of the main telescope plugin ':Telescope colorscheme"? Having yet another menu feels like overkill HOT 3
- ✅
- Error in highliting of rust attributes HOT 2
- Inactive windows dim effect seems "reversed" for lighter style HOT 3
- Relative lines are barely readable in lighter mode (and contrast is also less good in palenight). HOT 1
- Enable theme selection through :Telescope colorscheme HOT 1
- Telescope too dark HOT 1
- New material `colors.editor.fg_dark` too dark HOT 3
- Add vim-treesitter-context support HOT 4
- Add highlights for flash.nvim HOT 10
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 material.nvim.