Fix: add mini.icons compatibility to monokai-pro ristretto Neovim theme#403
Fix: add mini.icons compatibility to monokai-pro ristretto Neovim theme#403scossar wants to merge 1 commit into
Conversation
|
cc @gthelding |
|
On the off-chance that it's related to the issue, I'm using Ghostty as the terminal and generally launching Neovim directly from the terminal. |
|
I'm not seeing any errors with or without this change using ghostty or alacrtty. I don't object to adding this if you need it, but I'm trying to understand the error. Can you add a screenshot showing the error? |
|
Don't make the change just for me. I've got it sorted out locally. |
|
OK - I'm sorry, but I am just no able to duplicate it. To rule out any changes I made to my daily driver, I spun up a fresh VM with a stock omarchy install and it works fine. I agree we shouldn't merge this. |
|
That makes sense to me. I guess one last thing to check would be to confirm by running :Lazy that mini.icons is loaded when you are testing it. It doesn't seem that others are running into the issue though. |
|
Thanks for checking. I think I've figured this out. I'm loading the If I'm understanding things correctly:
|
|
I fork the repo for the theme so that I can make some subtle color changes (less bright whites, for example). Some themes (e.g., gruvbox) have the mini icons colors defined),but for some reason this one did not. I can look into adding it. I'll add the plug in you're using and see what I can sort out. Meanwhile, it doesn't hurt to add these override lines to the neovim.lua for the themne. I'd hate to deprive you of the joy that is ristretto. I tested the PR without adding that plugin. If you tested it with the plugin and it works, I am fine merging the PR. If I fix the main colorscheme, I can always take out the overrides. |
|
Thanks. Yes, I've tested it with and without the render-markdown plugin. The mini.nvim dependency is the issue. The relationship between mini.icons and web-devicons is kind of confusing. I'm just glad to have a consistent reproduction of the issue. Thanks for your work on this! I'm using the color scheme. That's why I got so caught up in this. |
|
You're welcome! Can you send me your init.lua so I can do some testing as I work on the theme? |
|
Sure https://github.com/scossar/nvim-config The only changes from the default LazyVim setup are:
The symbolic link to |
|
Oh, I'm pulling the converse.nvim and markdown-fileid.nvim plugins from a local directory. They're in my Github repo as well. The version of converse.nvim on Github isn't quite up to date. |
|
I have a test VM with a clean install of Omarchy 1.8.0. I was able to duplicate the error after adding your nvim config. I also confirmed that these additions fix the problem. I will work on fixing this in the colorscheme itself without the need for overrides in neovim.lua. |


Without this change, launching Neovim on my computer with the Omarchy Ristretto theme enabled returns
Invalid highlight nameerrors. The issue is that the gthelding/monokai-pro.nvim color scheme doesn't have support for the MiniIcon highlight groups. Possibly a PR could be made to that repo to add mini.icons support, but it can also be added with the color scheme'soverridefunction as is done in this PR.For context, most, hopefully all other Neovim color schemes used by Omarchy have explicit support for the MiniIcons highlight groups.