From bf84e0c8baecd641bba6876af5ac694ca2a5c0e5 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 26 Aug 2023 13:37:51 +1000 Subject: [PATCH] fix: ensure startup warnings are visible with a multiline message, to work around https://github.com/neovim/neovim/issues/17832 which has a fix planned for nvim 0.10 --- lua/nvim-tree.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index e5ffef507ec..889c9ea4eeb 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -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