diff --git a/lua/tmux/navigation/navigate.lua b/lua/tmux/navigation/navigate.lua index 47edb1b..95220c4 100644 --- a/lua/tmux/navigation/navigate.lua +++ b/lua/tmux/navigation/navigate.lua @@ -34,7 +34,7 @@ function M.to(direction) elseif is_nvim_border and options.navigation.cycle_navigation then nvim.wincmd(opposite_directions[direction], 999) elseif not is_nvim_border then - nvim.wincmd(direction) + nvim.wincmd(direction, vim.v.count) end end diff --git a/spec/tmux/navigation/navigate_spec.lua b/spec/tmux/navigation/navigate_spec.lua index d07a067..d688d3e 100644 --- a/spec/tmux/navigation/navigate_spec.lua +++ b/spec/tmux/navigation/navigate_spec.lua @@ -15,6 +15,12 @@ describe("navigate.has_tmux_target", function() layout = require("tmux.layout") options = require("tmux.configuration.options") tmux = require("tmux.wrapper.tmux") + + _G.vim = { + v = { + count = 1, + }, + } end) it("check is_tmux false", function()