Skip to content

Commit 113e095

Browse files
authored
feat: split startup warning messages into multiple lines (#2436)
1 parent 934469b commit 113e095

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/nvim-tree.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ local function validate_options(conf)
727727

728728
if invalid then
729729
if msg then
730-
msg = string.format("%s | %s", msg, invalid)
730+
msg = string.format("%s\n%s", msg, invalid)
731731
else
732-
msg = string.format("[NvimTree] %s", invalid)
732+
msg = string.format("[NvimTree]\n%s", invalid)
733733
end
734734
user[k] = nil
735735
else
@@ -742,7 +742,7 @@ local function validate_options(conf)
742742
validate(conf, DEFAULT_OPTS, ACCEPTED_STRINGS, ACCEPTED_TYPES, "")
743743

744744
if msg then
745-
notify_once(msg .. " | see :help nvim-tree-opts for available configuration options")
745+
notify_once(msg .. "\n\nsee :help nvim-tree-opts for available configuration options")
746746
end
747747
end
748748

0 commit comments

Comments
 (0)