From 82a1c1e251210f4805dec8f6d59a6ab2c6791334 Mon Sep 17 00:00:00 2001 From: pml68 Date: Fri, 29 Nov 2024 23:28:27 +0100 Subject: feat: split plugins.lua into manageable "chunks" --- lua/pml68/plugins/oil.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lua/pml68/plugins/oil.lua (limited to 'lua/pml68/plugins/oil.lua') diff --git a/lua/pml68/plugins/oil.lua b/lua/pml68/plugins/oil.lua new file mode 100644 index 0000000..974f94f --- /dev/null +++ b/lua/pml68/plugins/oil.lua @@ -0,0 +1,29 @@ +return { + "stevearc/oil.nvim", + cmd = "Oil", + config = function() + require("oil").setup({ + keymaps = { + [""] = false, + }, + view_options = { + show_hidden = true, + natural_order = true, + is_always_hidden = function(name, _) + return name == '.git' or name == "node_modules" or name == "target" + end + }, + float = { + padding = 2, + max_width = 50, + max_height = 0, + border = "single", + win_options = { + winblend = 0, + }, + }, + skip_confirm_for_simple_edits = true, + default_file_explorer = true, + }) + end +} -- cgit v1.2.3