Code Monkey home page Code Monkey logo

Comments (11)

mitjacotic avatar mitjacotic commented on July 20, 2024 5

I had same issue too for last two weeks. After that I realized it started happening on one of nvim v0.10.x versions. I don't have this issue on stable v0.9.4.

from nvim-tree.lua.

gegoune avatar gegoune commented on July 20, 2024 2

Do you mind providing as minimal reproducer as possible, it will help with the issue. Thanks.

from nvim-tree.lua.

pbower avatar pbower commented on July 20, 2024 1

Looks like the actions here resolves it:

require"nvim-tree".setup{
filters = {
dotfiles = true,
git_clean = true,
no_buffer = false,
},

actions = {
  change_dir = { enable = false }
},
}

from nvim-tree.lua.

gegoune avatar gegoune commented on July 20, 2024

Are all those mappings and settings critical for reproducing this behaviour?

from nvim-tree.lua.

Nikita128 avatar Nikita128 commented on July 20, 2024

no, I just included them so it would be clear that there is nothing in those mappings that causes this behavior (at least to me it seems like it)

from nvim-tree.lua.

uri avatar uri commented on July 20, 2024

I'm having the same issue. I can reproduce it by running nvim -nu nvt-min.lua using nvt-min.lua from the "Clean Room" Replication wiki page.

from nvim-tree.lua.

gegoune avatar gegoune commented on July 20, 2024

That's true.

  1. nvim -nu nvt-min.lua
  2. :NvimTreeOpen
  3. :unm <buffer> <C-e>
  4. <C-e> couple of times to scroll viewport down
  5. :lua require('nvim-tree.api').node.open.edit()

Scrolls root node back to top.

from nvim-tree.lua.

uri avatar uri commented on July 20, 2024

I had same issue too for last two weeks. After that I realized it started happening on one of nvim v0.10.x versions. I don't have this issue on stable v0.9.4.

I was also on v0.10.x and switching to the latest stable version fixes the problem for me as well.

from nvim-tree.lua.

y1rn avatar y1rn commented on July 20, 2024

same issue for long time

from nvim-tree.lua.

ybbond avatar ybbond commented on July 20, 2024

on my machine, this seems intermittent. I have not find specific variable that sometimes making the tree scrolled to bottom.

Screen.Recording.2024-02-02.at.12.37.14.mov

on the screen recording, I don't use @/pbower 's solution to disable change_dir action. but disabling change_dir won't fix for me

from nvim-tree.lua.

alex-courtis avatar alex-courtis commented on July 20, 2024

Confirming: this is happening on nvim 0.10

If that's the case I'd prefer that we waited some time before investigating this. 0.10 is a very large release, containing many significant change and has had several volatile breaks. Once it's stable we can investigate further.

from nvim-tree.lua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.