malbernaz / monokai.nvim

MIT License
5 stars 0 forks source link

lualine theme isn't recognized #1

Open mabugaj opened 1 year ago

mabugaj commented 1 year ago

As noted on the lualine repo https://github.com/nvim-lualine/lualine.nvim/wiki/Writing-a-theme the theme should be placed in correct folder in order to be picked up by the plugin. Otherwise it cannot be found.

Note to colorscheme authors : If you want to support lualine. You can put your lualine theme at lua/lualine/themes/{your_colorscheme}.lua in you repo.

malbernaz commented 1 year ago

Hey @mabugaj, you need to manually import it. It should look something like this:

local theme  = require("monokai.theme")

require("lualine").setup({ theme = theme })
mabugaj commented 1 year ago

@malbernaz Thanks for the info, still wouldn't it be nice to be fully consistent with the lualine plugin? I for example uses many other themes and have scripts to switch between them. Literally like every one of them simply has the theme in the correct path which in the end simplifies everything for the end user.

From what I know there's nothing wrong with this approach so why not to follow lualine recommendations? Maybe there's some reason that I'm not aware of?