Skip to content

Commit

Permalink
fix: properly implement toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-McMahon authored and sphamba committed Dec 2, 2024
1 parent e0b37da commit 1832dee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lua/smear_cursor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,7 @@ M.setup = function(opts)
end

M.toggle = function(opts)
opts = opts or {}

if opts.enabled then
opts.enabled = false
else
opts.enabled = true
end
M.enabled = not M.enabled
end

setmetatable(M, metatable)
Expand Down

0 comments on commit 1832dee

Please sign in to comment.