mawkler / modicator.nvim

Cursor line number mode indicator plugin for Neovim
MIT License
298 stars 6 forks source link

[Question] Is there any method to make modicator.nvim work with lualine after I change colorscheme in neovim? #27

Closed tan-wei closed 9 months ago

tan-wei commented 10 months ago

For now, if we change colorscheme (which means the new colorscheme is loaded after modicator.nvim), modicator.nvim will not work with lualine. Is there any method to reload modicator.nvim to support this refresh?

mawkler commented 9 months ago

@tan-wei This should already be supported. However, I'm refactoring the lualine integration, which will hopefully eradicate some bugs. Please try out 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 = {}
},

Let me know if that solves the issue for you!

tan-wei commented 9 months ago

OK, I'll try then.