Replies: 2 comments
-
Snacks.toggle
.new({
id = 'mouse',
name = 'Mouse',
get = function()
return vim.o.mouse ~= ''
end,
set = function(state)
vim.o.mouse = state and 'a' or ''
end,
})
:map '<leader>um' |
Beta Was this translation helpful? Give feedback.
0 replies
-
@drowning-cat Thanks! That does work. The message that comes up when disabling is a "warning" instead of info, but I'll take it! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble getting this to work. It enables the mouse, but doesn't allow me to disable the mouse once enabled.
I have
vim.opt.mouse = ""
in my startup options.lua, and with the above toggle, I can enable the mouse with<leader>um
, but the which-key menu continues to show "Enable Mouse" even though it's enabled, and repeating<leader>um
doesn't disable mouse support.Beta Was this translation helpful? Give feedback.
All reactions