From 1011bbee0232234d811a5dcdbaeb12bd0619a53e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 5 Dec 2023 13:09:21 +0100 Subject: Update oil opts --- fnl/plugins/editor/oil.fnl | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) (limited to 'fnl/plugins/editor') diff --git a/fnl/plugins/editor/oil.fnl b/fnl/plugins/editor/oil.fnl index 44ad7a4..1f09ec3 100644 --- a/fnl/plugins/editor/oil.fnl +++ b/fnl/plugins/editor/oil.fnl @@ -6,22 +6,22 @@ (oil.open))) {:nargs 0}]]) -(local keymaps {:g? :actions.show_help - : :actions.select - : :actions.select_vsplit - : :actions.select_split - : :actions.select_tab - : :actions.preview - : :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}) +(local opts {:keymaps {:g? :actions.show_help + : :actions.select + : :actions.select_vsplit + : :actions.select_split + : :actions.select_tab + : :actions.preview + : :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}}) (local keys [{1 "-" 2 :Oil :desc "Open parent directory"}]) @@ -29,8 +29,4 @@ (let [cmds (require :util.cmds)] (cmds.create-user-cmds user-cmds))) -(fn config [] - (let [oil (require :oil)] - (oil.setup {: keymaps}))) - -{1 :stevearc/oil.nvim : init : config : keys} +{1 :stevearc/oil.nvim : init : opts : keys} -- cgit v1.2.3-70-g09d2