aboutsummaryrefslogtreecommitdiff
path: root/plugin/40-oil.lua
blob: 34b4a90798515e353b262458d565f69d2f633f1e (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
vim.pack.add({ "https://github.com/stevearc/oil.nvim" })
require("oil").setup({
  keymaps = {
    ["<C-h>"] = false,
  },
  view_options = {
    show_hidden = true,
    natural_order = true,
    is_always_hidden = function(name, _)
      return 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,
})