/
bluesboy
/
dotfiles
Обзор
Документация
Войти
/
bluesboy
/
dotfiles
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
config/nvim/lua/plugins/ui/smart-splits.lua
43 строки
2 KB
Bluesboy
Refactor plugins with Lazy.nvim hacks
09 мар 2026, 07:01
09 мар 2026, 07:01
95396ab
Код
Авторство
О чём код?
return { { "mrjones2014/smart-splits.nvim", opts = { ignored_buftypes = { "nofile", "quickfix", "prompt" }, ignored_filetypes = { "NeoTree" }, default_amount = 1, at_edge = "wrap", float_win_behavior = "previous", move_cursor_same_row = false, cursor_follows_swapped_bufs = false, ignored_events = { "BufEnter", "WinEnter" }, multiplexer_integration = "tmux", disable_multiplexer_nav_when_zoomed = false, kitty_password = nil, zellij_move_focus_or_tab = false, log_level = "info", }, config = function(_, opts) require("smart-splits").setup(opts) local ss = require("smart-splits") local function map(lhs, rhs, desc) vim.keymap.set("n", lhs, rhs, { noremap = true, silent = true, desc = desc }) end map("<A-h>", ss.resize_left, "Resize pane left") map("<A-j>", ss.resize_down, "Resize pane down") map("<A-k>", ss.resize_up, "Resize pane up") map("<A-l>", ss.resize_right, "Resize pane right") map("<C-h>", ss.move_cursor_left, "Move Cursor to the Left Pane") map("<C-j>", ss.move_cursor_down, "Move Cursor to the Bottom Pane") map("<C-k>", ss.move_cursor_up, "Move Cursor to the Upper Pane") map("<C-l>", ss.move_cursor_right, "Move Cursor to the Right Pane") map("<C-\\>", ss.move_cursor_previous, "Move Cursor to Preview Pane") map("<leader>Wh", ss.swap_buf_left, "Swap with Left Pane") map("<leader>Wj", ss.swap_buf_down, "Swap with Bottom Pane") map("<leader>Wk", ss.swap_buf_up, "Swap with Upper Pane") map("<leader>Wl", ss.swap_buf_right, "Swap with Right Pane") end, }, }