Skip to content

Commit 2a1c343

Browse files
committed
refactor(util): change nvim 0.11 check function
1 parent df7c522 commit 2a1c343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/dashboard/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local uv = vim.loop
22
local utils = {}
33

44
utils.is_win = uv.os_uname().version:match('Windows')
5-
local is_nvim_11_or_newer = vim.version().minor >= 11 -- check nvim minor ver
5+
local is_nvim_11_or_newer = vim.fn.has 'nvim-0.11' == 1
66

77
function utils.path_join(...)
88
local path_sep = utils.is_win and '\\' or '/'

0 commit comments

Comments
 (0)