Skip to content

Commit 498a843

Browse files
committed
feat(oil): add file metadata columns to explorer
- Users can now view file modification time and size. - The file explorer provides more detailed information at a glance. - Hidden files can be shown, improving visibility of all files.
1 parent 74e48f2 commit 498a843

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lua/plugins/oil.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ return {
2424
bufhidden = "hide",
2525
},
2626
columns = {
27+
{ "mtime", highlight = "Comment" },
28+
{ "size", highlight = "Comment" },
2729
{ "icon", add_padding = false },
2830
},
2931
constrain_cursor = "name",
3032
default_file_explorer = true,
31-
delete_to_trash = true,
3233
keymaps = {
3334
["-"] = { "actions.parent", mode = "n" },
3435
["<c-l>"] = "actions.refresh",
@@ -49,9 +50,6 @@ return {
4950
skip_confirm_for_simple_edits = true,
5051
use_default_keymaps = false,
5152
view_options = {
52-
is_always_hidden = function(name, _)
53-
return name == "." or name == ".."
54-
end,
5553
show_hidden = true,
5654
},
5755
},

0 commit comments

Comments
 (0)