Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse option value not restored after disabling hardtime #128

Open
blarz opened this issue Jan 10, 2025 · 0 comments · May be fixed by #129
Open

Mouse option value not restored after disabling hardtime #128

blarz opened this issue Jan 10, 2025 · 0 comments · May be fixed by #129

Comments

@blarz
Copy link

blarz commented Jan 10, 2025

Describe the bug

I have hardtime enabled by default and I have disabled the mouse in my nvim config:

vim.opt.mouse = ''

When I disable hardtime via :Hardtime disable, the mouse is enabled again.

Can we save/restore the previous value when enabling/disabling hardtime?

Config options

  {
    'm4xshen/hardtime.nvim',
    event = 'VeryLazy',
    dependencies = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
    opts = {},
    config = function()
      require('hardtime').setup { enabled = true }
    end,
  },

To Reproduce

:set mouse=""
:Hardtime enable

Click right: see no nvim popup.

:Hardtime disable
:set mouse

see that mouse is set to nvi.
Right click: see nvim popup.

Expected behavior

Mouse option value should be restored to the previous value after :Hardtime disable.

@blarz blarz linked a pull request Jan 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant