Mofiqul / dracula.nvim

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

fix: use older methods to check for an incompatible version #115

Closed pynappo closed 8 months ago

pynappo commented 8 months ago

vim.version() was introduced in neovim v0.9, and vim.notify_once() was introduced on v0.7, so for users on outdated versions (<v0.7), the version check errors out instead of sending a notification

i believe the most common outdated version is the v0.6 version that ubuntu/debian/etc. has. using vim.fn.has() and vim.notify() (available since v0.5) should be enough?