mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
tweaks including aerial, cd in mini.files
This commit is contained in:
parent
6d8480b8b5
commit
6831ace589
10 changed files with 48 additions and 113 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue