neovim configuration using rocks.nvim plugin manager
1require("oil").setup({
2 keymaps = {
3 -- TODO: put a small note that I can use `g?` for help
4 -- TODO: change `_` opens Oil in util.root()
5 -- and make it global keymap
6 ["<C-/>"] = "actions.show_help",
7 ["<C-s>"] = "actions.select_split",
8 ["<C-v>"] = "actions.select_vsplit",
9 ["K"] = "actions.preview",
10 ["<C-l>"] = "actions.refresh",
11 ["<C-.>"] = "actions.toggle_hidden",
12 ["-"] = "actions.parent",
13 ["_"] = false,
14 ["<c-h>"] = false,
15 ["<c-p>"] = false,
16 ["%"] = function()
17 vim.ui.input({ prompt = "Enter filename: " }, function(input)
18 if input then
19 vim.cmd.edit(vim.fn.expand("%") .. input)
20 end
21 end)
22 end,
23 },
24})