Skip to content

Commit 807dc05

Browse files
authored
fix: ensure startup warnings are visible with a multiline message, to work around neovim/neovim#17832 planned for fix in nvim 0.10 (#2387)
1 parent 920868d commit 807dc05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ local function validate_options(conf)
656656
validate(conf, DEFAULT_OPTS, "")
657657

658658
if msg then
659-
vim.notify_once(msg .. " | see :help nvim-tree-setup for available configuration options", vim.log.levels.WARN)
659+
vim.notify_once(msg .. " | see :help nvim-tree-setup for available configuration options\n", vim.log.levels.WARN)
660660
end
661661
end
662662

@@ -679,7 +679,7 @@ end
679679

680680
function M.setup(conf)
681681
if vim.fn.has "nvim-0.8" == 0 then
682-
vim.notify_once("nvim-tree.lua requires Neovim 0.8 or higher", vim.log.levels.WARN)
682+
vim.notify_once("nvim-tree.lua requires Neovim 0.8 or higher\n", vim.log.levels.WARN)
683683
return
684684
end
685685

0 commit comments

Comments
 (0)