diff options
Diffstat (limited to 'fnl/plugins/oil.fnl')
-rw-r--r-- | fnl/plugins/oil.fnl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fnl/plugins/oil.fnl b/fnl/plugins/oil.fnl new file mode 100644 index 0000000..fa1e69d --- /dev/null +++ b/fnl/plugins/oil.fnl @@ -0,0 +1,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) |