[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',
|
||||
version = '^5', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
version = '^5',
|
||||
lazy = false
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
|
|
|
@ -21,16 +21,19 @@ return {
|
|||
opts = {},
|
||||
},
|
||||
{
|
||||
"alexghergh/nvim-tmux-navigation",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
disable_when_zoomed = true, -- defaults to false
|
||||
keybindings = {
|
||||
left = "<F5>",
|
||||
down = "<F6>",
|
||||
up = "<F7>",
|
||||
right = "<F8>",
|
||||
},
|
||||
},
|
||||
'mrjones2014/smart-splits.nvim',
|
||||
config = function()
|
||||
require('smart-splits').setup({})
|
||||
--Resize
|
||||
vim.keymap.set('n', '<S-F5>', require('smart-splits').resize_left)
|
||||
vim.keymap.set('n', '<S-F6>', require('smart-splits').resize_down)
|
||||
vim.keymap.set('n', '<S-F7>', require('smart-splits').resize_up)
|
||||
vim.keymap.set('n', '<S-F8>', require('smart-splits').resize_right)
|
||||
--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