diff options
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins/editor/oil.fnl | 38 |
1 files changed, 17 insertions, 21 deletions
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 - :<CR> :actions.select - :<C-s> :actions.select_vsplit - :<C-h> :actions.select_split - :<C-t> :actions.select_tab - :<C-p> :actions.preview - :<C-c> :actions.close - :<C-l> :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 + :<CR> :actions.select + :<C-s> :actions.select_vsplit + :<C-h> :actions.select_split + :<C-t> :actions.select_tab + :<C-p> :actions.preview + :<C-c> :actions.close + :<C-l> :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 :<cmd>Oil<cr> :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} |