diff --git a/lua/lspsaga/layout/float.lua b/lua/lspsaga/layout/float.lua index 12427fc58..4e613473a 100644 --- a/lua/lspsaga/layout/float.lua +++ b/lua/lspsaga/layout/float.lua @@ -1,7 +1,7 @@ local api, fn = vim.api, vim.fn local win = require('lspsaga.window') local ui = require('lspsaga').config.ui -local is_ten = vim.version().minor >= 10 +local is_ten = require('lspsaga.util').is_ten local M = {} function M.left(height, width, bufnr, title) diff --git a/lua/lspsaga/util.lua b/lua/lspsaga/util.lua index 5ebae5c8e..16394455d 100644 --- a/lua/lspsaga/util.lua +++ b/lua/lspsaga/util.lua @@ -5,6 +5,7 @@ local M = {} M.iswin = uv.os_uname().sysname:match('Windows') M.ismac = uv.os_uname().sysname == 'Darwin' +M.is_ten = vim.version().minor >= 10 M.path_sep = M.iswin and '\\' or '/'