summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-12-05 13:09:21 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-12-05 13:09:21 +0100
commit1011bbee0232234d811a5dcdbaeb12bd0619a53e (patch)
tree3bd96f00b5396b207fd6f076056aaa300b78f763
parent0ee09ef1d1128e507c68bb6e99b902e9c7d5d761 (diff)
Update oil opts
-rw-r--r--fnl/plugins/editor/oil.fnl38
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}