vim-tmux-navigator(needs some work on bindings)

This commit is contained in:
2024-01-25 02:25:12 -05:00
parent 5c88830f93
commit e91d840f90
3 changed files with 39 additions and 0 deletions

View File

@@ -17,6 +17,13 @@ M.general = {
["n"] = {"nzz", "find next"},
["N"] = {"Nzz", "find prev"},
-- navigation
["<c-h>"] = {"<cmd> TmuxNavigateLeft<cr>", "window left" },
["<c-j>"] = {"<cmd> TmuxNavigateDown<cr>", "window down" },
["<c-k>"] = {"<cmd> TmuxNavigateUp<cr>", "window up" },
["<c-l>"] = {"<cmd> TmuxNavigateRight<cr>", "window right" },
["<c-\\>"] = {"<cmd> TmuxNavigatePrevious<cr>", "window previous" },
},
}

View File

@@ -4,6 +4,17 @@ local overrides = require "custom.configs.overrides"
---@type NvPluginSpec[]
local plugins = {
{
"christoomey/vim-tmux-navigator",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
"TmuxNavigatePrevious",
},
lazy = false,
},
-- Override plugin definition options
{