aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/oil.lua
blob: 974f94f937e15155c5beaac2e81ac688f5d643ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}