refactor: use LazyVim.is_win()

This commit is contained in:
Folke Lemaitre
2024-03-26 20:47:16 +01:00
parent 1de90e7e4c
commit 1910cd5cb7
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ return {
-- snippets -- snippets
{ {
"L3MON4D3/LuaSnip", "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" and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
or nil, or nil,
dependencies = { dependencies = {

View File

@ -2,10 +2,10 @@ return {
-- better yank/paste -- better yank/paste
{ {
"gbprod/yanky.nvim", "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 = { opts = {
highlight = { timer = 250 }, highlight = { timer = 250 },
ring = { storage = jit.os:find("Windows") and "shada" or "sqlite" }, ring = { storage = LazyVim.is_win() and "shada" or "sqlite" },
}, },
keys = { keys = {
-- stylua: ignore -- stylua: ignore