-
How do I open nvim tree on startup along with vim-startify? I use Neovide I tried this: autocmd VimEnter *
\ if !argc()
\ | Startify
\ | NvimTreeOpen
\ | wincmd w
\ | endif But it doesn’t seem to work. Isn’t this a simple question and shouldn’t it be easy to find? I read the nvim tree docs but no luck. I’ve been trying from hours. I also saw this issue but I haven’t been able to open startify along with nvim tree on startup. Thankyou. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Quick update.: autocmd VimEnter * :Startify
autocmd VimEnter * :NvimTreeOpen I still do need a permanent thing to put in the nvim-tree.lua config |
Beta Was this translation helpful? Give feedback.
-
Now I gotta figure out how to throw the cursor to the other window coz |
Beta Was this translation helpful? Give feedback.
-
It might be easier to use the option
See |
Beta Was this translation helpful? Give feedback.
-
@alex-courtis was partially correct, lua << EOF
require("nvim-tree").setup{
open_on_setup = true,
ignore_buffer_on_setup = true,
}
EOF ( I still use VimScript 😂 ) |
Beta Was this translation helpful? Give feedback.
-
@alex-courtis , can you add this solution as a section in the wiki? Looks like forking the repo doesn’t fork the wiki and I have to clone it manually. |
Beta Was this translation helpful? Give feedback.
@alex-courtis was partially correct,
Only
open_on_setup = true
didn't work for vim-startify.I also had to add
ignore_buffer_on_setup = true
after that to do the trick.Here's a part of my new config:
( I still use VimScript 😂 )