Add sibling-swap plugin
This commit is contained in:
parent
2cf51b55ea
commit
b958ac678d
3 changed files with 37 additions and 0 deletions
.config/astronvim/lua/user
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue