Skip to content

Commit 8602bfa

Browse files
authored
refactor!: enable the symlink_target component using default_component_configs (#1122)
1 parent 9b5b4c8 commit 8602bfa

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ use {
220220
enabled = true,
221221
required_width = 110, -- min width of window required to show this column
222222
},
223+
symlink_target = {
224+
enabled = false,
225+
},
223226
},
224227
-- A list of functions, each representing a global custom command
225228
-- that will be available in all sources (if not overridden in `opts[source_name].commands`)

lua/neo-tree/defaults.lua

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ local config = {
251251
enabled = false,
252252
required_width = 120, -- min width of window required to show this column
253253
},
254+
symlink_target = {
255+
enabled = false,
256+
},
254257
},
255258
renderers = {
256259
directory = {
@@ -261,11 +264,11 @@ local config = {
261264
"container",
262265
content = {
263266
{ "name", zindex = 10 },
264-
-- {
265-
-- "symlink_target",
266-
-- zindex = 10,
267-
-- highlight = "NeoTreeSymbolicLinkTarget",
268-
-- },
267+
{
268+
"symlink_target",
269+
zindex = 10,
270+
highlight = "NeoTreeSymbolicLinkTarget",
271+
},
269272
{ "clipboard", zindex = 10 },
270273
{ "diagnostics", errors_only = true, zindex = 20, align = "right", hide_when_expanded = true },
271274
{ "git_status", zindex = 10, align = "right", hide_when_expanded = true },
@@ -286,11 +289,11 @@ local config = {
286289
"name",
287290
zindex = 10
288291
},
289-
-- {
290-
-- "symlink_target",
291-
-- zindex = 10,
292-
-- highlight = "NeoTreeSymbolicLinkTarget",
293-
-- },
292+
{
293+
"symlink_target",
294+
zindex = 10,
295+
highlight = "NeoTreeSymbolicLinkTarget",
296+
},
294297
{ "clipboard", zindex = 10 },
295298
{ "bufnr", zindex = 10 },
296299
{ "modified", zindex = 20, align = "right" },

0 commit comments

Comments
 (0)