LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.31k stars 1.17k forks source link

:Telescope find_files in combination with nvim-tree crashes nvim when opening a directory (nvim dir) #202

Open siblanco opened 1 year ago

siblanco commented 1 year ago

Steps to reproduce:

  1. nvim "any dir"
  2. :Telescope find_files
  3. choose any file and hit enter

nvim crashes quietly when there is no buffer yet. No errors in .cache/nvim/log When you toggle off nvim-tree (a buffer is created), find_files does not crash nvim anymore.

How can we / I solve this?

bortolottidev commented 1 year ago

Hey! Not sure if you're talking of this error (link). I'm using treesitter @ commit 518e2 and telescope @ commit d96ea and :TSUpdate fixed my problem

siblanco commented 1 year ago

Hey man, i made a short video (15sec) to show what I am talking about: https://storage.siblanco.dev/nvimcrash.mp4

sleaper commented 1 year ago

Hey man, i made a short video (15sec) to show what I am talking about: https://storage.siblanco.dev/nvimcrash.mp4

  • on first open, I toggle :Telescope find_files and enter on style.css -> nvim crashes
  • on second open, I toggle Nvim-Tree and then do :Telescope find_files, now it works

Same problem did you find any solution?

siblanco commented 1 year ago

@sleaper I am not using nvim-tree anymore, switched to telescope file browser if one is really needed. best advice I can give you here: do not nvim the directory, cd into the directory before and then simply call nvim in there. That fixed many quirks for me...not sure if it fixed the nvimtree bug aswell, i think it did.

mikedecr commented 11 months ago

FYI I am experiencing the same behavior as the video with a different configuration:

Edit

Fixed by reinstalling neovim