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 authored and GitHub committed 2024-03-07 11:40:51 +01:00
1 parent 29ed06e000
commit d9f5e6db16
1 file changed
+1 -1
+1 -1
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" },