From 92d89b849dfe1a558a2db39e5325505653647913 Mon Sep 17 00:00:00 2001 From: bitbird development Date: Thu, 7 Nov 2024 23:04:39 +0100 Subject: [PATCH] refactor to snacks.nvim --- lua/lazyvim/plugins/extras/editor/illuminate.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/illuminate.lua b/lua/lazyvim/plugins/extras/editor/illuminate.lua index ba8018ab..59aada0a 100644 --- a/lua/lazyvim/plugins/extras/editor/illuminate.lua +++ b/lua/lazyvim/plugins/extras/editor/illuminate.lua @@ -15,7 +15,7 @@ return { config = function(_, opts) require("illuminate").configure(opts) - LazyVim.toggle.map("ux", { + Snacks.toggle({ name = "Illuminate", get = function() return not require("illuminate.engine").is_paused() @@ -28,7 +28,7 @@ return { m.pause() end end, - }) + }):map("ux") local function map(key, dir, buffer) vim.keymap.set("n", key, function()