mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: some qol crap
This commit is contained in:
parent
867159343a
commit
94cc7bed34
34 changed files with 433 additions and 598 deletions
|
@ -61,9 +61,16 @@ M.config = function()
|
|||
},
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "-", function()
|
||||
require("oil").open()
|
||||
end)
|
||||
nmap("-", require("oil").open, { desc = "Open parent directory" })
|
||||
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "OilActionsPost",
|
||||
callback = function(event)
|
||||
if event.data.actions.type == "move" then
|
||||
Snacks.rename.on_rename_file(event.data.actions.src_url, event.data.actions.dest_url)
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue