tweaks including aerial, cd in mini.files

This commit is contained in:
iofq 2024-09-06 02:53:00 -05:00
parent 6d8480b8b5
commit 6831ace589
10 changed files with 48 additions and 113 deletions

View file

@ -70,7 +70,9 @@ return {
{ mode = 'n', keys = '<C-w>' },
{ mode = 'n', keys = 'z' },
},
window = {
config = { width = 'auto', },
},
clues = {
miniclue.gen_clues.g(),
miniclue.gen_clues.marks(),
@ -110,11 +112,11 @@ return {
local files = require("mini.files")
files.setup {
mappings = {
synchronize = "w",
go_in_plus = "<CR>"
},
windows = {
preview = true,
width_focus = 30,
width_preview = 50,
}
}
@ -133,6 +135,21 @@ return {
)
end,
})
vim.api.nvim_create_autocmd("User", {
pattern = "MiniFilesBufferCreate",
callback = function(args)
vim.keymap.set(
"n",
"`",
function()
local cur_entry_path = MiniFiles.get_fs_entry().path
local cur_directory = vim.fs.dirname(cur_entry_path)
vim.fn.chdir(cur_directory)
end,
{ buffer = args.data.buf_id }
)
end,
})
end)
end,
},