aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/oil.lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-11-29 23:28:27 +0100
committerpml68 <contact@pml68.me>2024-11-29 23:28:27 +0100
commit82a1c1e251210f4805dec8f6d59a6ab2c6791334 (patch)
treec2db695fe2767ff314319a490c833bebd30f99a8 /lua/pml68/plugins/oil.lua
parentfeat: remove deprecated API call (diff)
downloadnvim-82a1c1e251210f4805dec8f6d59a6ab2c6791334.tar.gz
feat: split plugins.lua into manageable "chunks"
Diffstat (limited to '')
-rw-r--r--lua/pml68/plugins/oil.lua29
1 files changed, 29 insertions, 0 deletions
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 = {
+ ["<C-h>"] = 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
+}