From eb33584738999ceb8bc7eb569b3d90b74698ee2c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 28 Nov 2023 01:40:50 +0100 Subject: Add oil and neorg, remove neo-tree --- fnl/plugins/editor/oil.fnl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 fnl/plugins/editor/oil.fnl (limited to 'fnl/plugins/editor/oil.fnl') diff --git a/fnl/plugins/editor/oil.fnl b/fnl/plugins/editor/oil.fnl new file mode 100644 index 0000000..e326663 --- /dev/null +++ b/fnl/plugins/editor/oil.fnl @@ -0,0 +1,27 @@ +;; File explorer that lets you edit your filesystem. + +(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}) + +(fn config [] + (let [oil (require :oil)] + (oil.setup {: keymaps}) + (vim.keymap.set :n "-" (fn [] + (oil.open)) + {:desc "Open parent directory"}))) + +{1 :stevearc/oil.nvim : config :event :VeryLazy} -- cgit v1.2.3-70-g09d2