Skip to content

Problem with opening new files when :help window is opened #3005

Answered by KriBielinski
KriBielinski asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @alex-courtis,

nvim-tree won't open files in windows with "special" buffers.

Well, this doesn't seem to be exactly true as I can also create a sequence of actions like this:

  1. nvim -nu /tmp/nvt-min.lua
  2. :help to open help and then <C-w>o to make :help the only window
  3. :NvimTreeOpen to open nvim-tree and open any file by navigating to it and using Enter

And now the newly opened file does actually replace the :help buffer.

But back to my original problem, like you have written in your last comment I have removed to help buffer from the list of excluded buffers by adding this to my nvim-tree configuration:

actions = {
  open_file = {
    window_picker = {
      exclude = {
        buft…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KriBielinski
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
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #3001 on November 17, 2024 00:04.