diff options
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -11,7 +11,6 @@ -- StackOverflow: https://stackoverflow.com/users/6064933/jdhao vim.loader.enable() -local api = vim.api local version = vim.version -- check if we have the latest stable version of nvim @@ -21,9 +20,8 @@ local actual_ver = version() if version.cmp(ev, actual_ver) ~= 0 then local _ver = string.format("%s.%s.%s", actual_ver.major, actual_ver.minor, actual_ver.patch) - local msg = string.format("Unsupported nvim version: expect %s, but got %s instead!", expected_ver, _ver) - api.nvim_err_writeln(msg) - return + local msg = string.format("Expect nvim %s, but got %s instead. Use at your own risk!", expected_ver, _ver) + vim.api.nvim_err_writeln(msg) end local core_conf_files = { |
