Skip to content

How to focus summary window on toggle? #197

Answered by rcarriga
lawrence-laz asked this question in Q&A
Discussion options

You must be logged in to vote

You can do this in your mapping callback

      neotest.summary.toggle()
      local win = vim.fn.bufwinid("Neotest Summary")
      if win > -1 then
        vim.api.nvim_set_current_win(win)
      end

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lawrence-laz
Comment options

@rcarriga
Comment options

@guruor
Comment options

@hjdivad
Comment options

@Terseus
Comment options

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