Skip to content

Is it possible to Toggle Focus? #1672

Answered by gegoune
timii asked this question in Q&A
Oct 18, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

You can use wincmd p within nvim-tree to switch back to previous window. But after quick test I couldn't get it to work (always switching to the next window on the right instead of previous one).

@alex-courtis should that work:

{ key = 'some-key', action_cb = function() vim.cmd.wincmd 'p' end }

? It works fine executed from command line.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@timii
Comment options

@alex-courtis
Comment options

@gegoune
Comment options

@alex-courtis
Comment options

@rohit-kumar-j
Comment options

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