#1166 validate config (#1195)

This commit is contained in:
Kiyan
2022-04-26 21:11:24 +02:00
committed by GitHub
parent a94f5bf776
commit 3ac443207f
5 changed files with 81 additions and 31 deletions

View File

@@ -82,11 +82,11 @@ SETUP *nvim-tree.setup*
To configure the tree (and make it runnable), you should call the setup
function.
Values may be functions. Warning: this may result in unexpected behaviour.
>
require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS
auto_reload_on_write = true,
disable_netrw = false,
hide_root_folder = false,
hijack_cursor = false,
hijack_netrw = true,
hijack_unnamed_buffer_when_opening = false,
@@ -99,6 +99,7 @@ function.
view = {
width = 30,
height = 30,
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,
number = false,
@@ -135,7 +136,7 @@ function.
},
ignore_ft_on_setup = {},
system_open = {
cmd = nil,
cmd = "",
args = {},
},
diagnostics = {
@@ -311,10 +312,10 @@ Here is a list of the options available in the setup call:
*nvim-tree.system_open*
- |system_open|: configuration options for the system open command
- |system_open.cmd|: the command to run, leaving nil should work but
- |system_open.cmd|: the command to run, leaving empty should work but
useful if you want to override the default command with another one.
type: `string`
default: `nil`
default: `""`
- |system_open.args|: the command arguments as a list
type: `{string}`