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 GitHub
parent 29ed06e000
commit d9f5e6db16

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