Update 2025-01-07

This commit is contained in:
2025-01-07 10:22:56 +02:00
parent f8a4240bf6
commit 1c5aee84a0
21 changed files with 555 additions and 302 deletions

View File

@@ -8,6 +8,7 @@ return {
desc = "Open parent directory",
},
},
version = "*",
lazy = false,
opts = {
-- Oil will take over directory buffers (e.g. `vim .` or `:e src/`)
@@ -42,7 +43,7 @@ return {
-- Skip the confirmation popup for simple operations
skip_confirm_for_simple_edits = false,
-- Deleted files will be removed with the trash_command (below).
--delete_to_trash = true,
delete_to_trash = true,
-- Change this to customize the command used when deleting to trash
trash_command = "trash-put",
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first
@@ -77,12 +78,28 @@ return {
show_hidden = true,
-- This function defines what is considered a "hidden" file
is_hidden_file = function(name, bufnr)
return vim.startswith(name, ".")
local m = name:match("^%.")
return m ~= nil
end,
-- This function defines what will never be shown, even when `show_hidden` is set
is_always_hidden = function(name, bufnr)
return false
end,
-- Sort file names with numbers in a more intuitive order for humans.
-- Can be "fast", true, or false. "fast" will turn it off for large directories.
natural_order = "fast",
-- Sort file and directory names case insensitive
case_insensitive = false,
sort = {
-- sort order can be "asc" or "desc"
-- see :help oil-columns to see which columns are sortable
{ "type", "asc" },
{ "name", "asc" },
},
-- Customize the highlight group for the file name
highlight_filename = function(entry, is_hidden, is_link_target, is_link_orphan)
return nil
end,
},
-- Configuration for the floating window in oil.open_float
float = {