Revert "#1166 validate user's options (#1177)"

This reverts commit 5bbd3a0a91.
This commit is contained in:
kiyan
2022-04-24 14:41:48 +02:00
parent 2c46464226
commit 09a47aed8d
5 changed files with 31 additions and 77 deletions

View File

@@ -9,7 +9,7 @@ local M = {
}
function M.fn(node)
if #M.config.system_open.cmd == 0 then
if not M.config.system_open.cmd then
require("nvim-tree.utils").warn "Cannot open file with system application. Unrecognized platform."
return
end
@@ -53,7 +53,7 @@ end
function M.setup(opts)
M.config.system_open = opts or {}
if #M.config.system_open.cmd == 0 then
if not M.config.system_open.cmd then
if M.config.is_windows then
M.config.system_open = {
cmd = "cmd",