nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing indent line and reoccurring message regarding “nvim_tree_gitignore” keep persisting after update

mondenoir opened this issue · comments

After a recent update, “nvim-tree” began the following 2 odd phenomenons:

  1. A Reoccurring message pops up every single time I load up Noevim

Screen Shot 2021-11-30 at 8 51 01 PM

  1. The most outer indent line is missing and cursor is now hovering over the icon instead

Pasted Graphic

I tried to troubleshoot by doing the following to no avail:

  1. Updated Neovim to nightly 0.6.0
  2. Removing any “nvim_tree_gititgore” related options in my config file which is very minimal

Pasted Graphic 1

Has anyone encounter these problems after recent update? If so, please kindly share your solution.

commented

remove all nvim_tree_gitignore which is now set in git = { ignore = true|false } in the setup call

@kyazdani42 Thanks for the reply. I've added git = { ignore = true|false } to my config file as followed:

Screen Shot 2021-12-07 at 12 23 11 AM

The same message still persist after restart along with the missing outer indent-line. More so, I've also try uninstalling/installing to no avail as well. Any idea why this is happening?

Screen Shot 2021-12-07 at 12 24 56 AM

commented

did you remove the option nvim_tree_gitignore from your config ? Maybe if you are using something like packer, run PackerCompile ?

I truly appreciate your reply kyazdani42 and believe me I've tried everything including PackerCompile, uninstalling/installing, an empty config file, but the message always appears. It just puzzles me as to why the message would even appear if my config file is empty. You've made a great plugin but I guess I just have to use it as is for now

commented

this might be loaded somewhere in your config i guess. Try to :let g:nvim_tree_gitignore and see if it returns something, if it does, you still have this option somewhere in your config

You are right kyazdani42 the command you recommended did return something and I was able to track it down and resolve the error message issue :) Now, I just have to figure out how to resolve the indent line problem:

Before update:
Screen Shot 2021-12-13 at 10 56 09 AM

After update:
Screen Shot 2021-12-13 at 10 52 48 AM

After some digging, I was able to get the indent line back by swapping the following file: lua/nvim-tree/renderer/init.lua to the previous version. There were 7 changes made on the current version located on line 106, 167, 183, 244, 385, 386, and 387,. I've try commenting out those lines but to no avail. Nonetheless, I want to sincerely thank you for your replies and it's just very rare to have a creator of a plugin, that's so widely use, be so responsive to its users 🙏🙏🙏

commented

not sure i understand the second part of your message (stuff about swapping file ?), but thanks for the kind words anyway :)