[nvim] replace nvim-tmux-navigator with smart-splits
This commit is contained in:
parent
23e13f9930
commit
4390536372
2 changed files with 16 additions and 13 deletions
|
@ -219,8 +219,8 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'mrcjkb/rustaceanvim',
|
'mrcjkb/rustaceanvim',
|
||||||
version = '^5', -- Recommended
|
version = '^5',
|
||||||
lazy = false, -- This plugin is already lazy
|
lazy = false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
|
|
@ -21,16 +21,19 @@ return {
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"alexghergh/nvim-tmux-navigation",
|
'mrjones2014/smart-splits.nvim',
|
||||||
event = "VeryLazy",
|
config = function()
|
||||||
opts = {
|
require('smart-splits').setup({})
|
||||||
disable_when_zoomed = true, -- defaults to false
|
--Resize
|
||||||
keybindings = {
|
vim.keymap.set('n', '<S-F5>', require('smart-splits').resize_left)
|
||||||
left = "<F5>",
|
vim.keymap.set('n', '<S-F6>', require('smart-splits').resize_down)
|
||||||
down = "<F6>",
|
vim.keymap.set('n', '<S-F7>', require('smart-splits').resize_up)
|
||||||
up = "<F7>",
|
vim.keymap.set('n', '<S-F8>', require('smart-splits').resize_right)
|
||||||
right = "<F8>",
|
--Move
|
||||||
},
|
vim.keymap.set('n', '<F5>', require('smart-splits').move_cursor_left)
|
||||||
},
|
vim.keymap.set('n', '<F6>', require('smart-splits').move_cursor_down)
|
||||||
|
vim.keymap.set('n', '<F7>', require('smart-splits').move_cursor_up)
|
||||||
|
vim.keymap.set('n', '<F8>', require('smart-splits').move_cursor_right)
|
||||||
|
end
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue