Mofiqul / dracula.nvim

Dracula colorscheme for neovim written in Lua
MIT License
594 stars 102 forks source link

Errors during theme initialization #105

Closed bzlom closed 1 year ago

bzlom commented 1 year ago

Been trying to install the theme for the best part of the evening.

if I set the ~/.config/nvim/init.vim like this:

" PLUGINS
call plug#begin()
Plug 'Mofiqul/dracula.nvim'
call plug#end()

vim.cmd[[colorscheme dracula]]

I get this error:

Error detected while processing /home/bzlom/.config/nvim/init.vim:
line   15:
E682: Invalid search pattern or delimiter

If I set it like this:

call plug#begin()
Plug 'Mofiqul/dracula.nvim'
call plug#end()

colorscheme dracula

I get these errors:

Error detected while processing /home/om/.local/share/nvim/plugged/dracula.nvim/colors/dracula.lua:
E5113: Error while calling lua chunk: ...cal/share/nvim/plugged/dracula.nvim/lua/dracula/init.lua:125: attempt to call f
ield 'notify_once' (a nil value)
stack traceback:
        ...cal/share/nvim/plugged/dracula.nvim/lua/dracula/init.lua:125: in function 'load'
        ...local/share/nvim/plugged/dracula.nvim/colors/dracula.lua:1: in main chunk

I apologize if there is an obvious issue with my config, I'm doing this for the first time and would appreciate some guidance

bzlom commented 1 year ago

Solved my issue - it was related to an older version of nvim, I was on 0.6.x and as soon as updated to 0.9.x all issues disappeared