Skip to content
Discussion options

You must be logged in to vote

You can override M.is_nvim_float:

require('tmux.wrapper.nvim').is_nvim_float = function()
  if Snacks then
    local is_explorer = vim.iter(Snacks.picker.get { source = 'explorer' }):any(function(picker) ---@param picker snacks.Picker
      return picker:is_focused()
    end)
    if is_explorer then
      return false
    end
  end
  return vim.api.nvim_win_get_config(0).relative ~= ""
end

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
17 replies
@drowning-cat
Comment options

@rudenkornk
Comment options

@drowning-cat
Comment options

@drowning-cat
Comment options

Answer selected by rudenkornk
@rudenkornk
Comment options

@rudenkornk
Comment options

@rudenkornk
Comment options

@drowning-cat
Comment options

Comment options

You must be logged in to vote
0 replies
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