From 1910cd5cb76229d565c3d291af2ae27a7d4574b1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 26 Mar 2024 20:47:16 +0100 Subject: [PATCH] refactor: use `LazyVim.is_win()` --- lua/lazyvim/plugins/coding.lua | 2 +- lua/lazyvim/plugins/extras/coding/yanky.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index 6aec8b85..6e8549a4 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -70,7 +70,7 @@ return { -- snippets { "L3MON4D3/LuaSnip", - build = (not jit.os:find("Windows")) + build = (not LazyVim.is_win()) and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp" or nil, dependencies = { diff --git a/lua/lazyvim/plugins/extras/coding/yanky.lua b/lua/lazyvim/plugins/extras/coding/yanky.lua index c48df709..9f7911cb 100644 --- a/lua/lazyvim/plugins/extras/coding/yanky.lua +++ b/lua/lazyvim/plugins/extras/coding/yanky.lua @@ -2,10 +2,10 @@ return { -- better yank/paste { "gbprod/yanky.nvim", - dependencies = not jit.os:find("Windows") and { "kkharji/sqlite.lua" } or {}, + dependencies = not LazyVim.is_win() and { "kkharji/sqlite.lua" } or {}, opts = { highlight = { timer = 250 }, - ring = { storage = jit.os:find("Windows") and "shada" or "sqlite" }, + ring = { storage = LazyVim.is_win() and "shada" or "sqlite" }, }, keys = { -- stylua: ignore