Skip to content

How do I open nvim-tree in startup without overiding the NvChad nvim-tree setup options. #2893

Closed Answered by FosRexx
FosRexx asked this question in Q&A
Discussion options

You must be logged in to vote

After learning more about neovim I did this quite differently than the original answer, I wont explain the reasons much here be I will just share what I have done.

First i added this line at the end of ~/.config/nvim/init.lua file:

require "custom"

Then I created a custom directory in ~/.config/nvim/lua/, now we have a directory like ~/.config/nvim/lua/custom/

Then I created a init.lua file inside ~/.config/nvim/lua/custom/. Now in ~/.config/nvim/lua/custom/init.lua, I added this line:

require("custom.nvimtree")

Now I again created a new file named nvimtree.lua inside ~/.config/nvim/lua/custom/. Now in ~/.config/nvim/lua/custom/nvimtree.lua, I added this which is copied directly from the

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@FosRexx
Comment options

@FosRexx
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by FosRexx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants