Files
neovim-config/lua/plugins/oil.lua
T
thalladaandClaude Opus 5 203aeadad8 Fix keymap and plugin spec bugs
- Move fugitive force-push from <leader>gf to <leader>gF; <leader>gf is
  LazyVim's read-only "Git Current File History"
- octo.nvim used `opt` instead of `opts`, so the PR comment mappings were
  silently dropped; also drop the spec duplicated by the util.octo extra
- oil's `-` keymap had `desc` nested in a third table, so lazy.nvim ignored it

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 12:27:20 -04:00

31 lines
994 B
Lua

return {
"stevearc/oil.nvim",
opts = {
-- remapping is not working, so redefine defaults with C-l and C-h swapped for C-f and C-i
-- see: https://github.com/stevearc/oil.nvim/issues/217
use_default_keymaps = false,
keymaps = {
["g?"] = "actions.show_help",
["<CR>"] = "actions.select",
["<C-s>"] = "actions.select_vsplit",
["<C-i>"] = "actions.select_split",
["<C-t>"] = "actions.select_tab",
["<C-p>"] = "actions.preview",
["<C-c>"] = "actions.close",
["<C-f>"] = "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",
},
},
dependencies = { "nvim-tree/nvim-web-devicons" },
keys = {
{ "-", "<cmd>Oil<cr>", desc = "Open parent directory in current buffer" },
},
}