fix(yanky): properly disable sqlite.lua on Windows (#2543)

When directly modifying its `enabled` property, the plugin will remain
disabled even if required by another plugin.
This commit is contained in:
MoetaYuko 2024-03-07 18:40:51 +08:00 committed by Andreas Gerlach
parent 0693bbc5bb
commit 08709e5335

View file

@ -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" },