config-neovim/lua/plugins/smart-splits.lua

41 lines
1.3 KiB
Lua
Raw Permalink Normal View History

return {
"mrjones2014/smart-splits.nvim",
event = "VeryLazy",
opts = { ignored_filetypes = { "nofile", "quickfix", "qf", "prompt" }, ignored_buftypes = { "nofile" } },
keys = {
{
"<c-h>",
function() require("smart-splits").move_cursor_left() end,
desc = "Move to left split"
},
{
"<c-j>", function() require("smart-splits").move_cursor_down() end,
desc = "Move to below split"
},
{
"<c-k>", function() require("smart-splits").move_cursor_up() end,
desc = "Move to above split"
},
{
"<c-l>", function() require("smart-splits").move_cursor_right() end,
desc = "Move to right split"
},
{
"<c-up>", function() require("smart-splits").resize_up() end,
desc = "Resize split up"
},
{
"<c-down>", function() require("smart-splits").resize_down() end,
desc = "Resize split down"
},
{
"<c-left>", function() require("smart-splits").resize_left() end,
desc = "Resize split left"
},
{
"<c-right>", function() require("smart-splits").resize_right() end,
desc = "Resize split right"
},
},
}