From 21608a591907b6f1c656de7d247fce5ea7c373a6 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 8 Feb 2025 20:22:56 -0500 Subject: [PATCH] add snacks.toggle functionality for smear-cursor --- lua/data/keys.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/data/keys.lua b/lua/data/keys.lua index 918e51a..485fe9c 100644 --- a/lua/data/keys.lua +++ b/lua/data/keys.lua @@ -1301,6 +1301,20 @@ M.ripsub = { }, } +M.smearcursor = function() + require('snacks.toggle') + .new({ + id = 'smearcursor', + name = 'Smear-Cursor', + get = function() + return require('smear_cursor').enabled + end, + set = function() + require('smear_cursor').toggle() + end, + }) + :map('uW') +end M.splitjoin = { toggle = 'gJ', }