return { { "mrjones2014/smart-splits.nvim" }, lazy = false, config = function() local smart_splits = require("smart-splits") local keymap = vim.keymap -- recommended mappings -- resizing splits -- these keymaps will also accept a range, -- for example `10` will `resize_left` by `(10 * config.default_amount)` keymap.set("n", "", smart_splits.resize_left) keymap.set("n", "", smart_splits.resize_down) keymap.set("n", "", smart_splits.resize_up) keymap.set("n", "", smart_splits.resize_right) -- moving between splits keymap.set("n", "", smart_splits.move_cursor_left) keymap.set("n", "", smart_splits.move_cursor_down) keymap.set("n", "", smart_splits.move_cursor_up) keymap.set("n", "", smart_splits.move_cursor_right) keymap.set("n", "", smart_splits.move_cursor_previous) -- swapping buffers between windows keymap.set("n", "h", smart_splits.swap_buf_left) keymap.set("n", "j", smart_splits.swap_buf_down) keymap.set("n", "k", smart_splits.swap_buf_up) keymap.set("n", "l", smart_splits.swap_buf_right) end, }