feat: add sort_by option to sort files by modification time (#1040)

Co-authored-by: Brandon Dwiel <bdwiel@apple.com>
This commit is contained in:
Brandon D
2022-03-03 17:41:58 -05:00
committed by GitHub
parent 50a927f176
commit 690c7e96ed
4 changed files with 43 additions and 8 deletions

View File

@@ -83,6 +83,7 @@ function.
auto_close = false,
auto_reload_on_write = true,
open_on_tab = false,
sort_by = "name",
hijack_cursor = false,
update_cwd = false,
hijack_unnamed_buffer_when_opening = false,
@@ -201,6 +202,12 @@ Here is a list of the options available in the setup call:
type: `boolean`
default: `false`
*nvim-tree.sort_by*
- |sort_by|: changes how files within the same directory are sorted. can be
one of 'name' | 'modification_time'
type: `string`
default: `"name"`
*nvim-tree.hijack_unnamed_buffer_when_opening*
- |hijack_unnamed_buffer_when_opening|: opens in place of the unnamed
buffer if it's empty.