Compare commits
No commits in common. "4aeab6127fb58ebf270b3f71c14e81dde95d5a43" and "2b0701c8a09c0c720faa89598725e8f7120ed676" have entirely different histories.
4aeab6127f
...
2b0701c8a0
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
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<A-h>` will `resize_left` by `(10 * config.default_amount)`
|
|
||||||
keymap.set("n", "<A-h>", smart_splits.resize_left)
|
|
||||||
keymap.set("n", "<A-j>", smart_splits.resize_down)
|
|
||||||
keymap.set("n", "<A-k>", smart_splits.resize_up)
|
|
||||||
keymap.set("n", "<A-l>", smart_splits.resize_right)
|
|
||||||
-- moving between splits
|
|
||||||
keymap.set("n", "<C-h>", smart_splits.move_cursor_left)
|
|
||||||
keymap.set("n", "<C-j>", smart_splits.move_cursor_down)
|
|
||||||
keymap.set("n", "<C-k>", smart_splits.move_cursor_up)
|
|
||||||
keymap.set("n", "<C-l>", smart_splits.move_cursor_right)
|
|
||||||
keymap.set("n", "<C-\\>", smart_splits.move_cursor_previous)
|
|
||||||
-- swapping buffers between windows
|
|
||||||
keymap.set("n", "<leader><leader>h", smart_splits.swap_buf_left)
|
|
||||||
keymap.set("n", "<leader><leader>j", smart_splits.swap_buf_down)
|
|
||||||
keymap.set("n", "<leader><leader>k", smart_splits.swap_buf_up)
|
|
||||||
keymap.set("n", "<leader><leader>l", smart_splits.swap_buf_right)
|
|
||||||
end,
|
|
||||||
}
|
|
Loading…
Reference in a new issue