Closed gregorias closed 9 months ago
@gregorias It seems like the problem is that you set the colorscheme after loading all plugins (including modicator.nvim). I changed your config like this, which works for me:
require("lazy").setup({
{
"folke/tokyonight.nvim",
config = function()
vim.cmd.colorscheme("tokyonight")
end,
},
{
"hoob3rt/lualine.nvim",
opts = {},
},
{
"mawkler/modicator.nvim",
dependencies = { "folke/tokyonight.nvim" },
opts = {
highlights = {
defaults = { bold = true },
},
},
},
})
I'll close this issue, but please let me know if you have any more issues 🙂
This doesn't work for me.
@gregoriasI'm refactoring the lualine integration, and I think I've solved both these issues. Please try the branch lualine-refactor
, which if you're using lazy.nvim can be done like so, followed by a :Lazy update
:
{
'mawkler/modicator.nvim',
branch = 'lualine-refactor', -- <---
init = function()
vim.o.cursorline = true
vim.o.number = true
vim.o.termguicolors = true
end,
opts = {}
},
Does that solve your issue?
Yep, works splendidly.
The issue
The plugin doesn't work if it's not lazy-loaded. It doesn't start with a bold cursorline number, doesn't change colors. It looks like this:
Normal mode (the color should be different and the number should be bold)
Insert mode (the color should be green):
Visual mode (the color should be purple):
Reproduction
Additional comments
The colors work fine if I load the plugin on "VeryLazy", BUT the number not being bold on initial load still remains.