Skip to content

Commit

Permalink
fix: add util.is_ten fix action preview (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
leaxoy authored Mar 12, 2024
1 parent b4e80c2 commit f63b794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspsaga/layout/float.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions lua/lspsaga/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/'

Expand Down

0 comments on commit f63b794

Please sign in to comment.