fix: ensure startup warnings are visible with a multiline message, to work around https://github.com/neovim/neovim/issues/17832 planned for fix in nvim 0.10 (#2387)

This commit is contained in:
Alexander Courtis 2023-08-26 13:40:25 +10:00 committed by GitHub
parent 920868dba1
commit 807dc05156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -656,7 +656,7 @@ local function validate_options(conf)
validate(conf, DEFAULT_OPTS, "")
if msg then
vim.notify_once(msg .. " | see :help nvim-tree-setup for available configuration options", vim.log.levels.WARN)
vim.notify_once(msg .. " | see :help nvim-tree-setup for available configuration options\n", vim.log.levels.WARN)
end
end
@ -679,7 +679,7 @@ end
function M.setup(conf)
if vim.fn.has "nvim-0.8" == 0 then
vim.notify_once("nvim-tree.lua requires Neovim 0.8 or higher", vim.log.levels.WARN)
vim.notify_once("nvim-tree.lua requires Neovim 0.8 or higher\n", vim.log.levels.WARN)
return
end