echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.47k stars 175 forks source link

mini.nvim loading via kickstart.nvim throwing errors #921

Closed kakitkelvinho closed 1 month ago

kakitkelvinho commented 1 month ago

Contributing guidelines

Module(s)

statusline

Description

I am using an unmodified kickstart.nvim configuration, and upon running it I get thrown the following error:

E5108: Error executing lua ....local/share/nvim/lazy/mini.nvim/lua/mini/statusline.lua:660: attempt to call field 'is_enable
d' (a nil value)
stack traceback:
        ....local/share/nvim/lazy/mini.nvim/lua/mini/statusline.lua:660: in function 'diagnostic_is_disabled'
        ....local/share/nvim/lazy/mini.nvim/lua/mini/statusline.lua:331: in function 'section_diagnostics'
        ....local/share/nvim/lazy/mini.nvim/lua/mini/statusline.lua:612: in function <....local/share/nvim/lazy/mini.nvim/lu
a/mini/statusline.lua:607>

If I comment out the lines in the init.lua containing mini.nvim I would not get this error, and if I delete all of the kickstart.nvim things the error would also not pop up.

I have tried deleting all files related to mini.nvim in the .local/share/nvim folders, and reinstalling it via Lazy to no success. I have also deleted cached to see if it works. So far, the error still pops up. Any advice would be greatly appreciated.

Neovim version

0.10.0-dev

Steps to reproduce

  1. Clone the kickstart repo
  2. Run nvim
  3. Run :Lazy update or :Lazy install
  4. Error shows up

Expected behavior

No error

Actual behavior

Error as mentioned above.

echasnovski commented 1 month ago

This error is shown because you are using development version of 0.10. The vim.diagnostic.is_enabled() was added late in the development cycle and is present in the released 0.10 version.

Updating Neovim should fix this.

Closing as not (really) an issue with 'mini.nvim' and duplicate of #901.

kakitkelvinho commented 1 month ago

Thanks! I will do that then