Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim . does not open netrw nor nerdtree #25

Closed
ghost opened this issue Feb 7, 2022 · 11 comments
Closed

vim . does not open netrw nor nerdtree #25

ghost opened this issue Feb 7, 2022 · 11 comments

Comments

@ghost
Copy link

ghost commented Feb 7, 2022

Temporary work around is to go to lua/core/utils.lua and comment out lines 10 -12 that disable netrw

@ghost
Copy link
Author

ghost commented Feb 7, 2022

Tbh, unless I disable this whole file, my vim command history doesn't work as well.

@bryant-the-coder
Copy link
Contributor

astrovim has nvimtree and not nerdtree

@kabinspace
Copy link
Member

@MrEverymorning can you clarify your problem a little more?

@mehalter
Copy link
Member

mehalter commented Feb 8, 2022

@MrEverymorning I ran into this and it is because nvim-tree is not being loaded on start up, it's lazy loaded. If you comment out this line: https://github.com/kabinspace/AstroVim/blob/97509bd29e3f60a77cc2f0944fd4b76ed954e10e/lua/core/plugins.lua#L76 then it should start working as you expect it.

@kabinspace
Copy link
Member

@mehalter doing that might cause few problems, I would rather suggest you to do this instead

@mehalter
Copy link
Member

mehalter commented Feb 9, 2022

@kabinspace Is the link you put solving the issue mentioned? It seems that even with the other commit the plugin wouldn't be loaded until the toggle keybinding is run and so it wouldn't start automatically when opening neovim with something like neovim .

@mehalter
Copy link
Member

mehalter commented Feb 9, 2022

@MrEverymorning also the vim history is because the Shada file is being set to none so you can comment out the Shada line to get back history. I did this for telescope oldfiles to work correctly instead of just the current session's history

https://github.com/kabinspace/AstroVim/blob/97509bd29e3f60a77cc2f0944fd4b76ed954e10e/lua/core/utils.lua#L34

@kabinspace
Copy link
Member

@kabinspace Is the link you put solving the issue mentioned? It seems that even with the other commit the plugin wouldn't be loaded until the toggle keybinding is run and so it wouldn't start automatically when opening neovim with something like neovim .

Yes, it won't open automatically at the start because it is lazy-loaded, which means it will only load when user commands it to. It is done to decrease the startup time of neovim

@kabinspace
Copy link
Member

@MrEverymorning also the vim history is because the Shada file is being set to none so you can comment out the Shada line to get back history. I did this for telescope oldfiles to work correctly instead of just the current session's history

https://github.com/kabinspace/AstroVim/blob/97509bd29e3f60a77cc2f0944fd4b76ed954e10e/lua/core/utils.lua#L34

Yes, I've disabled some of the default plugins that come with neovim to once again speed up the startup time and make the neovim more faster and snappy. You can manually enable them if you really find them useful.

@kabinspace
Copy link
Member

@MrEverymorning Is your problem solved?

@ghost
Copy link
Author

ghost commented Feb 9, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants