Add sibling-swap plugin

This commit is contained in:
Tobias Reisinger 2024-02-28 03:28:03 +01:00
parent 2cf51b55ea
commit b958ac678d
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 37 additions and 0 deletions
.config/astronvim/lua/user

View file

@ -32,6 +32,25 @@ return {
["<leader>b"] = { name = "Buffers" },
-- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
-- Keep cursor centered
["<C-d>"] = { "<C-d>zz" },
["<C-u>"] = { "<C-u>zz" },
-- Sibling swap
["g>"] = {
function()
require("sibling-swap").swap_with_right()
end,
desc = "Swap with right",
},
["g<"] = {
function()
require("sibling-swap").swap_with_left()
end,
desc = "Swap with left",
},
},
t = {
-- setting a mapping to false will disable it