nvimdev / dashboard-nvim

vim dashboard
MIT License
2.34k stars 190 forks source link

Could I use PlugInstall in init.vim for this plugin? #430

Open fathurwithyou opened 7 months ago

fathurwithyou commented 7 months ago

I havent setup the lazy yet, could I use only init.vim?

LelouchFR commented 6 months ago

yes, by simply doing:

Plug 'nvimdev/dashboard-nvim'

then:

lua << EOF
require'dashboard'.setup{}
EOF

after that, close vim and reopen it and run :PlugInstall.

ingenarel commented 2 months ago

it would be nice if someone closed this issue since it's probably solved

MattJohnson2002 commented 2 months ago

I keep getting an error. can someone explain like im 5 how to get dashboard to work with the hyper theme using nvim plug?

Error detected while processing /home/matthewjohnson/.config/nvim/init.vim: line 61: E5108: Error executing lua [string ":lua"]:1: module 'dashboard' not found: no field package.preload['dashboard'] no file './dashboard.lua' no file '/usr/share/luajit-2.1/dashboard.lua' no file '/usr/local/share/lua/5.1/dashboard.lua' no file '/usr/local/share/lua/5.1/dashboard/init.lua' no file '/usr/share/lua/5.1/dashboard.lua' no file '/usr/share/lua/5.1/dashboard/init.lua' no file './dashboard.so' no file '/usr/local/lib/lua/5.1/dashboard.so' no file '/usr/lib64/lua/5.1/dashboard.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' [string ":lua"]:1: in main chunk

ingenarel commented 2 months ago

@MattJohnson2002 https://github.com/nvimdev/dashboard-nvim/issues/430#issuecomment-2003141739 doesn't this work?

you also need run the PlugInstall command