aboutsummaryrefslogtreecommitdiff
path: root/fnl/plugins/oil.fnl
blob: fa1e69d03ab58250c701f881baccd64921d7ad31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(local oil (_G.util.require! :oil))
;maybe use other one so dirs can show status
(local oil-git (_G.util.require! :oil-git))
(local oil-gitignore (require "lua.oil-gitignore"))

(oil.setup {
  :view_options {
                        ;heh, get it?
    :is_hidden_file (fn [en by]
      (local dir (oil.get_current_dir by))
      (. oil-gitignore.git_status dir :ignored en)
    )
  }

  :float {
    :padding 7
  }
})
(oil-git.setup)