Closed quantum-booty closed 1 year ago
You need to add that part to your existing lualine config.
What you're showing here, is not your lualine config at all.
You need to add that part to your existing lualine config.
What you're showing here, is not your lualine config at all.
Sorry I don't quite understand, what I showed in the screenshot is my lualine config. I haven't used lualine before so I'm just putting that config in init.lua for testing purposes.
But your lualaine visible in the screenshot (the line at the bottom) IS configured. And not with what you have in the screenshot. The part I mentioned on the Noice website, also isn't enough. you need to properly configure lualine yourself.
Either way, this really seems to be a lualine configuration issue. Not really realated to Noice.
Did you run PackerCompile
and restart Neovim?
Yes I did run PackerCompile and restart Neovim. Could you elaborate on how I could properly configure lualine?
Sorry, but no. I'm not going to give support on how to use lualine. Follow the docs at https://github.com/nvim-lualine/lualine.nvim/ and once that works and you are able to customize the lualine, then get back here if the Noice components would not work.
But they will work, once your lualine config works.
Just to prove by point: lualine is not visible when I comment out the config:
And now it is visible:
ok, did you actually do something that should trigger any of the messages?
The statusline components won't show anything if they're empty.
Try triggering an error like :foooooooo
This is what I see:
Do you get anything when after that, doing:
:lua vim.pretty_print(require("noice").api.statusline.message.get())
I get this:
That;s what it should show. So your lualine config isn't working.
Are you sure that noice
has been loaded when you set up lualine?
Nevermind. It must be or lualine wouldn't load I guess
I've just tried your lualine config in your dotfiles (I've deleted a few bits that uses plugins that I don't have): https://github.com/folke/dot/blob/master/config/nvim/lua/plugins/lualine.lua
And this is what I'm getting:
I think I figured it out. Noice.setup should run before lua-line, otherwise it won't work.
Make sure you add module="noice"
to the packer use statement of noice and do setup in the config=
for noice.
I added "after" in my lualine config and it worked:
use { 'nvim-lualine/lualine.nvim', after = 'noice.nvim', config = [[require('config.lualine')]] }
Describe the bug I can't see the statusline components in lualine.
Which version of Neovim are you using? NVIM v0.9.0-dev-109-g0b71960ab
To Reproduce I used the default noice configs:
require("noice").setup()
And the suggested config for lualine:
Expected Behavior I expect to be able to see the added lualine components.
Screenshots
Noice Log :Noice log is empty