Closed nc7s closed 10 months ago
A quick change like below comes out working (at least no errors).
- local count = vim.diagnostic.get_count(0, 'Warning')
+ local count = vim.tbl_count(vim.diagnostic.get(0, { severity = vim.diagnostic.severity.WARN }))
Ey! I'm going to take a much needed nap and fix it right away. Thanks for the heads up!
neovim 0.6.1, error message says
galaxyline.nvim/lua/galaxyline/themes/neonline.lua:231: attempt to call field 'get_count' (a nil value)
@Groctel pushed a "fix" commit e2294bb734449a33cdfb596d150fc67a70383c20, but the fact isget_count()
is gone for good. See https://github.com/neovim/neovim/pull/16950, and as mentioned in https://github.com/neovim/neovim/pull/16950#issuecomment-1006175721, https://github.com/vim-airline/vim-airline/commit/9a3568b815b57b8552a2a552b4f616603cb20667, which moves tovim.diagnostic.get()