getting thsi error Error detected while processing /home/ryans/.config/nvim/init.lua:…
- User
getting thsi error Error detected while processing /home/ryans/.config/nvim/init.lua: Invalid spec module:
plugins.alphaExpected atableof specs, but abooleanwas returned instead for this alpha.lua code for my nvim-- Dashboard configuration file
-- Plugin: alpha-nvim -- url: https://github.com/goolord/alpha-nvim
-- For configuration examples see: https://github.com/goolord/alpha-nvim/discussions/16
local status_ok, alpha = pcall(require, 'alpha') if not status_ok then return end
local dashboard = require('alpha.themes.dashboard')
-- Footer local function footer() local version = vim.version() local print_version = "v" .. version.major .. '.' .. version.minor .. '.' .. version.patch local datetime = os.date('%Y/%m/%d %H:%M:%S')
return print_version .. ' - ' .. datetime end
-- Banner local banner = { " ", " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ", " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ", " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ", " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ", " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ", " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ", " ", }
dashboard.section.header.val = banner
-- Menu dashboard.section.buttons.val = { dashboard.button('e', ' New file', ':ene startinsert'), dashboard.button('f', ' Find file', ':NvimTreeOpen'), dashboard.button('s', ' Settings', ':e $MYVIMRC'), dashboard.button('u', ' Update plugins', ':Lazy update'), dashboard.button('q', ' Quit', ':qa'), }
dashboard.section.footer.val = footer()
alpha.setup(dashboard.config)
- Assistant
- User
Error detected while processing /home/ryans/.config/nvim/init.lua: E5113: Error while calling lua chunk: /home/ryans/.config/nvim/init.lua:13: attempt to call global 'use' (a nil value) stack traceback: /home/ryans/.config/nvim/init.lua:13: in main chunk getting this error
- Assistant
- User
i have lazy installed can you make it so i install this from lazy
- Assistant