add more sensible defaults for window_picker.excludes (#1027)

This commit is contained in:
Alexander Courtis 2022-03-01 07:33:24 +11:00 committed by GitHub
parent 7034d26921
commit 3d8912ca53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 17 deletions

View File

@ -175,11 +175,8 @@ require'nvim-tree'.setup {
enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
exclude = {
filetype = {
"notify",
"packer",
"qf"
}
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame", },
buftype = { "nofile", "terminal", "help", },
}
}
}

View File

@ -141,11 +141,8 @@ function.
enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
exclude = {
filetype = {
"notify",
"packer",
"qf"
}
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame", },
buftype = { "nofile", "terminal", "help", },
}
}
},
@ -428,10 +425,13 @@ Here is a list of the options available in the setup call:
default: `"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"`
- |actions.open_file.window_picker.exclude|: Table of buffer option names
mapped to a list of option values taht indicates to the picker that the
mapped to a list of option values that indicates to the picker that the
buffer's window should not be selectable.
type: `table`
default: `{ filetype = { "packer", "qf", "notify" } }`
default: `{`
`filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame", },`
`buftype = { "nofile", "terminal", "help", }`
`}`
==============================================================================
OPTIONS *nvim-tree-options*

View File

@ -10,11 +10,8 @@ local M = {
enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
exclude = {
filetype = {
"notify",
"packer",
"qf"
}
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame", },
buftype = { "nofile", "terminal", "help", },
}
}
}