Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/neo-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ then the `default_source` will be updated to be the first entry of

`content_layout` defines how the labels are placed inside a tab. This only takes
effect when the tab width is greater than the length of label i.e.
`tabs_layout = "equal", "focus"` or when `tabs_min_width` is large enough.
`tabs_layout = "equal", "active"` or when `tabs_min_width` is large enough.
Following options are available.
'start' : left aligned / 󰓩 bufname \/..
'end' : right aligned / 󰓩 bufname \/...
Expand Down
4 changes: 2 additions & 2 deletions lua/neo-tree/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ local config = {
{ source = "buffers" },
{ source = "git_status" },
},
content_layout = "start", -- only with `tabs_layout` = "equal", "focus"
content_layout = "start", -- only with `tabs_layout` = "equal", "active"
-- start : |/ 󰓩 bufname \/...
-- end : |/ 󰓩 bufname \/...
-- center : |/ 󰓩 bufname \/...
tabs_layout = "equal", -- start, end, center, equal, focus
tabs_layout = "equal", -- start, end, center, equal, active
-- start : |/ a \/ b \/ c \ |
-- end : | / a \/ b \/ c \|
-- center : | / a \/ b \/ c \ |
Expand Down
2 changes: 1 addition & 1 deletion lua/neo-tree/health/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function M.check_config(config)
validate(
"tabs_layout",
ss.tabs_layout,
v.literal({ "equal", "start", "end", "center", "focus" })
v.literal({ "equal", "start", "end", "center", "active" })
)
validate("truncation_character", ss.truncation_character, "string", false)
validate("tabs_min_width", ss.tabs_min_width, "number", true)
Expand Down
2 changes: 1 addition & 1 deletion lua/neo-tree/types/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
---@field show_scrolled_off_parent_node boolean?
---@field sources neotree.Config.SourceSelector.Item[]?
---@field content_layout? "start"|"end"|"center"
---@field tabs_layout? "equal"|"start"|"end"|"center"|"focus"
---@field tabs_layout? "equal"|"start"|"end"|"center"|"active"
---@field truncation_character string
---@field tabs_min_width integer?
---@field tabs_max_width integer?
Expand Down
Loading