aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config/nvim/lua/plugins/oil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/.config/nvim/lua/plugins/oil.lua')
-rw-r--r--nvim/.config/nvim/lua/plugins/oil.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/plugins/oil.lua b/nvim/.config/nvim/lua/plugins/oil.lua
new file mode 100644
index 0000000..40bdc44
--- /dev/null
+++ b/nvim/.config/nvim/lua/plugins/oil.lua
@@ -0,0 +1,21 @@
+require("oil").setup {
+ keymaps = {
+ ["g?"] = { "actions.show_help", mode = "n" },
+ ["<CR>"] = "actions.select",
+ ["<C-v>"] = { "actions.select", opts = { vertical = true } },
+ ["<C-s>"] = { "actions.select", opts = { horizontal = true } },
+ ["<C-t>"] = { "actions.select", opts = { tab = true } },
+ ["<C-p>"] = "actions.preview",
+ ["<C-c>"] = { "actions.close", mode = "n" },
+ ["<C-m>"] = "actions.refresh",
+ ["-"] = { "actions.parent", mode = "n" },
+ ["_"] = { "actions.open_cwd", mode = "n" },
+ ["`"] = { "actions.cd", mode = "n" },
+ ["~"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
+ ["gs"] = { "actions.change_sort", mode = "n" },
+ ["gx"] = "actions.open_external",
+ ["g."] = { "actions.toggle_hidden", mode = "n" },
+ ["g\\"] = { "actions.toggle_trash", mode = "n" },
+ },
+ use_default_keymaps = false,
+}