mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
fix(oil): remap keys to avoid navigation conflicts
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
}
|
||||
},
|
||||
keymaps = {
|
||||
-- Remap defaults that conflict with tmux navigation
|
||||
["<C-h>"] = false, -- was toggle hidden
|
||||
["<C-l>"] = false, -- was refresh
|
||||
["g."] = "actions.toggle_hidden",
|
||||
["<C-r>"] = "actions.refresh",
|
||||
},
|
||||
},
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function(opts)
|
||||
require("oil").setup(opts.opts)
|
||||
config = function(_, opts)
|
||||
require("oil").setup(opts)
|
||||
vim.keymap.set("n", "-", ":Oil<CR>", { desc = "[Oil] Back to parent dir", silent = true })
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user