datwaft / bubbly.nvim

Bubbly statusline for neovim
MIT License
184 stars 6 forks source link

Making plugin optional breaks the fusion #103

Closed datwaft closed 3 years ago

datwaft commented 3 years ago

Example of what breaks it:

  --------------
  -- Statusline
  --------------
    use {
      'datwaft/bubbly.nvim',
      config = require'plugins.statusline',
      branch = 'dev',
      cond = { nocode }, -- If you delete this line it doesn't happen
    }

Error message: image

Possible solution is using lua globals instead of vim globals and using setters or something.

datwaft commented 3 years ago

Maybe it would require a breaking change like #95.

datwaft commented 3 years ago

Seems to only happen if you configure the plugin after it is initialized, not before.