feat: split startup warning messages into multiple lines (#2436)
This commit is contained in:
@@ -727,9 +727,9 @@ local function validate_options(conf)
|
|||||||
|
|
||||||
if invalid then
|
if invalid then
|
||||||
if msg then
|
if msg then
|
||||||
msg = string.format("%s | %s", msg, invalid)
|
msg = string.format("%s\n%s", msg, invalid)
|
||||||
else
|
else
|
||||||
msg = string.format("[NvimTree] %s", invalid)
|
msg = string.format("[NvimTree]\n%s", invalid)
|
||||||
end
|
end
|
||||||
user[k] = nil
|
user[k] = nil
|
||||||
else
|
else
|
||||||
@@ -742,7 +742,7 @@ local function validate_options(conf)
|
|||||||
validate(conf, DEFAULT_OPTS, ACCEPTED_STRINGS, ACCEPTED_TYPES, "")
|
validate(conf, DEFAULT_OPTS, ACCEPTED_STRINGS, ACCEPTED_TYPES, "")
|
||||||
|
|
||||||
if msg then
|
if msg then
|
||||||
notify_once(msg .. " | see :help nvim-tree-opts for available configuration options")
|
notify_once(msg .. "\n\nsee :help nvim-tree-opts for available configuration options")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user