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

View file

@ -32,6 +32,25 @@ return {
["<leader>b"] = { name = "Buffers" }, ["<leader>b"] = { name = "Buffers" },
-- quick save -- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command -- ["<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 = { t = {
-- setting a mapping to false will disable it -- setting a mapping to false will disable it

View file

@ -0,0 +1,10 @@
return {
"rcarriga/nvim-notify",
config = function(plugin, opts)
require("plugins.configs.notify")(plugin, opts)
local notify = require "notify"
notify.setup({
background_colour = "#000000"
})
end,
}

View file

@ -21,5 +21,13 @@ return {
"wakatime/vim-wakatime", "wakatime/vim-wakatime",
enabled = wakatime_enabled, enabled = wakatime_enabled,
lazy = false lazy = false
},
{
"Wansmer/sibling-swap.nvim",
lazy = false,
opts = {
use_default_keymaps = false,
}
} }
} }