From 75570cbb968cac3ae4c7d615447ff1c31a8730c2 Mon Sep 17 00:00:00 2001 From: Moeta Yuko Date: Tue, 13 Feb 2024 14:19:43 +0800 Subject: [PATCH] fix(yanky): properly disable sqlite.lua on Windows When directly modifying its `enabled` property, the plugin will remain disabled even if required by another plugin. --- lua/lazyvim/plugins/extras/coding/yanky.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/coding/yanky.lua b/lua/lazyvim/plugins/extras/coding/yanky.lua index 00b675e9..c48df709 100644 --- a/lua/lazyvim/plugins/extras/coding/yanky.lua +++ b/lua/lazyvim/plugins/extras/coding/yanky.lua @@ -2,7 +2,7 @@ return { -- better yank/paste { "gbprod/yanky.nvim", - dependencies = { { "kkharji/sqlite.lua", enabled = not jit.os:find("Windows") } }, + dependencies = not jit.os:find("Windows") and { "kkharji/sqlite.lua" } or {}, opts = { highlight = { timer = 250 }, ring = { storage = jit.os:find("Windows") and "shada" or "sqlite" },