Skip to content

Could I toggle or open nvim-tree in the current split rather than in a separate extra split on the left? #3078

Closed

Description

@CoinCheung

When I open nvim-tree, it splits the screen on the left and show the tree in there. But I hope it will not show the screen, and open on the current split that my cursor stays. Is there such configuration?

Activity

  1. CoinCheung commented on Mar 9, 2025

    @CoinCheung
    Author

    I tried this, but it failed to work:

    vim.keymap.set("n", "<leader>n", ":NvimTreeToggle<cr>", {current_window=true})
    
  2. locked and limited conversation to collaborators on Mar 9, 2025
  3. converted this issue into a discussion #3081 on Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions