allow signcolumn settings (#805)

This commit is contained in:
Xun 2021-12-12 20:00:54 +08:00 committed by GitHub
parent 06a2b799c6
commit bc13a1ffca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -90,7 +90,8 @@ require'nvim-tree'.setup {
list = {}
},
number = false,
relativenumber = false
relativenumber = false,
signcolumn = "yes"
},
trash = {
cmd = "trash",

View File

@ -112,6 +112,7 @@ function.
auto_resize = false,
number = false,
relativenumber = false,
signcolumn = "yes"
mappings = {
custom_only = false,
list = {}
@ -303,6 +304,11 @@ Here is a list of the options available in the setup call:
type: `boolean`
default: false
- |view.signcolumn|: show diagnostic sign column. Value can be `"yes"`,
`"auto"`, `"no"`
type: `string`
default: `"yes"`
- |view.mappings|: configuration options for keymaps
- |view.mappings.custom_only|: will use only the provided user mappings and not the default

View File

@ -117,7 +117,8 @@ local DEFAULT_CONFIG = {
list = {}
},
number = false,
relativenumber = false
relativenumber = false,
signcolumn = 'yes'
}
local function merge_mappings(user_mappings)
@ -152,6 +153,7 @@ function M.setup(opts)
M.View.auto_resize = opts.auto_resize
M.View.winopts.number = options.number
M.View.winopts.relativenumber = options.relativenumber
M.View.winopts.signcolumn = options.signcolumn
if options.mappings.custom_only then
M.View.mappings = options.mappings.list
else