goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.82k stars 109 forks source link

How do I use the dashboard theme with vim-plug? #135

Closed Un1q32 closed 2 years ago

Un1q32 commented 2 years ago

I dont use packer or paq, should i just switch to those? I'm new to vim stuff

goolord commented 2 years ago
    Plug 'goolord/alpha-nvim'

    lua << EOF
      require'alpha'.setup(require'alpha.themes.dashboard'.config)
    EOF
Un1q32 commented 2 years ago

@goolord

Error detected while processing /home/joey/.config/nvim/init.vim:
line   18:
E5107: Error loading lua [string ":lua"]:3: '=' expected near 'call'
Press ENTER or type command to continue

init.vim.txt

goolord commented 2 years ago

it has to go at the end of the file with the proper indentation, not in the middle of the packer plug#begin()

Un1q32 commented 2 years ago

@goolord

Error detected while processing /home/joey/.config/nvim/init.vim:
line   17:
E5107: Error loading lua [string ":lua"]:3: '=' expected near '<eof>'
Press ENTER or type command to continue

init.vim.txt

goolord commented 2 years ago
call plug#begin()
    Plug 'ryanoasis/vim-devicons'
    Plug 'ayu-theme/ayu-vim'
    Plug 'mcchrish/nnn.vim'
    Plug 'ms-jpq/coq_nvim'
    Plug 'goolord/alpha-nvim'
call plug#end()

set termguicolors
let ayucolor="dark"
colorscheme ayu
set number

lua << EOF
 require'alpha'.setup(require'alpha.themes.dashboard'.config)
EOF

like this

Un1q32 commented 2 years ago

that worked! thanks!