@@ -65,7 +65,10 @@ local function fd_file_args(opts)
6565 if opts .no_ignore then
6666 table.insert (args , " --no-ignore" )
6767 end
68- if opts .follow_symlinks then
68+ if opts .show_symlinks then
69+ table.insert (args , " --type" )
70+ table.insert (args , " symlink" )
71+ elseif opts .follow_symlinks then
6972 table.insert (args , " --follow" )
7073 end
7174 return args
174177--- @field hidden table | boolean : determines whether to show hidden files or not (default : ` { file_browser = false, folder_browser = false }` )
175178--- @field respect_gitignore boolean : induces slow-down w / plenary finder (default : false , true if ` fd` available )
176179--- @field no_ignore boolean : disable use of ignore files like .gitignore /.ignore /.fdignore (default : false , requires ` fd` )
180+ --- @field show_symlinks boolean : show symbolic links , i.e. files and folders (default : false )
177181--- @field follow_symlinks boolean : traverse symbolic links , i.e. files and folders (default : false , only works with ` fd` )
178182--- @field hide_parent_dir boolean : hide ` ../` in the file browser (default : false )
179183--- @field dir_icon string : change the icon for a directory (default : )
@@ -204,6 +208,7 @@ fb_finders.finder = function(opts)
204208 auto_depth = vim .F .if_nil (opts .auto_depth , false ), -- depth for file browser
205209 respect_gitignore = vim .F .if_nil (opts .respect_gitignore , has_fd ),
206210 no_ignore = vim .F .if_nil (opts .no_ignore , false ),
211+ show_symlinks = vim .F .if_nil (opts .show_symlinks , false ),
207212 follow_symlinks = vim .F .if_nil (opts .follow_symlinks , false ),
208213 files = vim .F .if_nil (opts .files , true ), -- file or folders mode
209214 grouped = vim .F .if_nil (opts .grouped , false ),
0 commit comments