Skip to content
Discussion options

You must be logged in to vote

It's expected behavior for vim-tmux-navigator to jump from a floating window to the previous window. Since snacks.nvim uses multiple floating windows, you're moving to the picker.main window in the same way. If auto_close is enabled, the picker closes when it loses focus.

For the fix, we simply call the command in the root window context, which is a non-floating window in the case of the explorer.

Via disable
---@module 'snacks'

vim.g.tmux_navigator_no_mappings = 1

vim.pack.add({
  { src = "https://github.com/christoomey/vim-tmux-navigator" },
  { src = "https://github.com/folke/snacks.nvim" },
})

vim.keymap.set("n", "<Space>e", function()
  Snacks.picker.explorer()
end, {})

local tmu…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@drowning-cat
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Muizzyranking
Comment options

Comment options

You must be logged in to vote
3 replies
@Muizzyranking
Comment options

@drowning-cat
Comment options

@Muizzyranking
Comment options

Answer selected by Muizzyranking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants