Update .config/nvim/lua/config/20_keymaps.lua

Update .config/nvim/lua/plugin/01_whichkey.lua
Update .config/nvim/lua/plugin/38_oil.lua
Update .config/nvim/lua/plugin/40_ai.lua
This commit is contained in:
Lewis Wynne 2025-11-12 12:07:27 +00:00
parent 50ac85d80b
commit 1b6267e86e
4 changed files with 37 additions and 18 deletions

View file

@ -2,7 +2,28 @@ return {
{
"stevearc/oil.nvim",
dependencies = { { "nvim-mini/mini.icons" } },
opts = {},
opts = {
use_default_keymaps = false,
keymaps = {
["g?"] = { "actions.show_help", mode = "n" },
["<CR>"] = "actions.select",
["<leader><leader>"] = "actions.preview",
["-"] = { "actions.parent", mode = "n" },
["="] = { "actions.open_cwd", mode = "n" },
["+"] = { "actions.cd", mode = "n" },
["<leader>;"] = { "actions.select", opts = { vertical = true } },
["<leader>-"] = { "actions.select", opts = { horizontal = true } },
["<leader>x"] = "actions.open_external",
["g."] = { "actions.toggle_hidden", mode = "n" },
},
float = {
padding = 2,
max_width = 0,
max_height = 0,
border = nil,
preview_split = "auto",
},
},
lazy = false,
keys = {
{ "<leader>o", mode = "n", "<Cmd>Oil<CR>", desc = "oil" },