Skip to content

Commit 2613a16

Browse files
committed
fix: show unstable message after loading noice
1 parent 567ad5b commit 2613a16

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lua/noice/init.lua

+9-10
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ M.api = Api
1010

1111
---@param opts? NoiceConfig
1212
function M.setup(opts)
13-
local ui = vim.api.nvim_list_uis()[1]
14-
if ui and ui.chan == 1 and ui.ext_termcolors then
15-
vim.notify(
16-
[[**noice.nvim** is currently unstable on nightly. For more details,
17-
see https://github.com/folke/noice.nvim/issues/298
18-
]],
19-
vim.log.levels.WARN,
20-
{ title = "noice.nvim" }
21-
)
22-
end
2313
-- run some checks before setting up
2414
if not Health.check({ checkhealth = false, loaded = false }) then
2515
return
@@ -32,6 +22,15 @@ see https://github.com/folke/noice.nvim/issues/298
3222
require("noice.message.router").setup()
3323
M.enable()
3424
end)
25+
local ui = vim.api.nvim_list_uis()[1]
26+
if ui and ui.chan == 1 and ui.ext_termcolors then
27+
vim.notify(
28+
[[**noice.nvim** is currently unstable on nightly. For more details,
29+
see https://github.com/folke/noice.nvim/issues/298]],
30+
vim.log.levels.WARN,
31+
{ title = "noice.nvim" }
32+
)
33+
end
3534
end
3635

3736
if vim.v.vim_did_enter == 0 then

0 commit comments

Comments
 (0)