From bf34539aae0bef505621941940111988c58cd4e6 Mon Sep 17 00:00:00 2001 From: ZaneFerns360 Date: Sat, 21 Sep 2024 12:37:05 +0530 Subject: [PATCH] oil --- lua/custom/plugins/dashboard.lua | 3 ++- lua/custom/plugins/oil.lua | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/custom/plugins/dashboard.lua b/lua/custom/plugins/dashboard.lua index a3864586..d201c1af 100644 --- a/lua/custom/plugins/dashboard.lua +++ b/lua/custom/plugins/dashboard.lua @@ -52,11 +52,12 @@ local dash = { header = vim.split(logo, '\n'), -- stylua: ignore center = { - { action = "Telescope find_files", desc = " Find File", icon = " ", key = "f" }, + { action = "Telescope find_files", desc = " Find File", icon = " ", key = "f" }, { action = "ene | startinsert", desc = " New File", icon = " ", key = "n" }, { action = "Telescope oldfiles", desc = " Recent Files", icon = " ", key = "r" }, { action = "Telescope live_grep", desc = " Find Text", icon = " ", key = "g" }, { action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" }, + { action = "Oil", desc = " Oil", icon = "󰾅 ", key = "o" }, { action = "qa", desc = " Quit", icon = " ", key = "q" }, }, footer = function() diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua index 6f24333c..4257ed5c 100644 --- a/lua/custom/plugins/oil.lua +++ b/lua/custom/plugins/oil.lua @@ -37,9 +37,9 @@ local oil = { concealcursor = 'nvic', }, -- Send deleted files to the trash instead of permanently deleting them (:help oil-trash) - delete_to_trash = true, + delete_to_trash = false, -- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits) - skip_confirm_for_simple_edits = false, + skip_confirm_for_simple_edits = true, -- Selecting a new/moved/renamed file or directory will prompt you to save changes first -- (:help prompt_save_on_select_new_entry) prompt_save_on_select_new_entry = true, @@ -99,7 +99,7 @@ local oil = { return false end, -- Sort file names in a more intuitive order for humans. Is less performant, - -- so you may want to set to false if you work with large directories. + -- so you may want to set to false if you work with large directories.oil natural_order = true, -- Sort file and directory names case insensitive case_insensitive = false,