From 2a94573f54c69a9af7536586ab2c03eb88bda5e7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 5 Jan 2024 01:50:20 +0100 Subject: Refactor --- fnl/plugins/oil.fnl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fnl/plugins/oil.fnl (limited to 'fnl/plugins/oil.fnl') diff --git a/fnl/plugins/oil.fnl b/fnl/plugins/oil.fnl new file mode 100644 index 0000000..fac1532 --- /dev/null +++ b/fnl/plugins/oil.fnl @@ -0,0 +1,25 @@ +;; File explorer that lets you edit your filesystem. + +(local opts {:keymaps {:g? :actions.show_help + : :actions.select + : :actions.select_vsplit + : :actions.select_split + : :actions.select_tab + : :actions.preview + :q :actions.close + : :actions.refresh + :- :actions.parent + :_ :actions.open_cwd + "`" :actions.cd + "~" :actions.tcd + :gs :actions.change_sort + :gx :actions.open_external + :g. :actions.toggle_hidden + "g\\\\" :actions.toggle_trash} + :float {:padding 1 :max_width 64 :max_height 32}}) + +(local keys [{1 "-" + 2 "lua require(\"oil\").open_float()" + :desc "Open parent directory"}]) + +{1 :stevearc/oil.nvim : opts : keys} -- cgit v1.2.3-70-g09d2