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
3 changed files with 11 additions and 17 deletions

View File

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

View File

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

View File

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