aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 23449f9..de5909b 100644
--- a/init.lua
+++ b/init.lua
@@ -8,15 +8,16 @@
-- Email: jdhao@hotmail.com
-- Blog: https://jdhao.github.io/
+local api = vim.api
+local utils = require "utils"
+
-- check if we have the latest stable version of nvim
local expected_ver = "0.7.2"
-
-local utils = require "utils"
local nvim_ver = utils.get_nvim_version()
if nvim_ver ~= expected_ver then
local msg = string.format("Unsupported nvim version: expect %s, but got %s instead!", expected_ver, nvim_ver)
- vim.api.nvim_echo({ { msg, "ErrorMsg" } }, false, {})
+ api.nvim_err_writeln(msg)
return
end