m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.38k stars 26 forks source link

When I configure `hint = false` the plugin no longer seems to work #35

Closed svanharmelen closed 1 year ago

svanharmelen commented 1 year ago

Describe the bug When I configure hint = false the plugin no longer seems to work

Config options

    use {
      'm4xshen/hardtime.nvim',
      config = function()
        require('hardtime').setup {
          allow_different_key = true,
          hint = false,
          disabled_keys = {
            ["<Up>"] = {},
            ["<Down>"] = {},
            ["<Left>"] = {},
            ["<Right>"] = {},
          },
          restricted_keys = {
            ["-"] = {},
            ["+"] = {},
            ["gj"] = {},
            ["gk"] = {},
            ["<CR>"] = {},
            ["<C-M>"] = {},
            ["<C-N>"] = {},
            ["<C-P>"] = {},
          },
        }
      end
    }

To Reproduce Steps to reproduce the behavior:

  1. Use the above config
  2. Press j a couple of times
  3. Notice your actions are not blocked and you don't get a notification

Expected behavior Should be blocked and get a notification

m4xshen commented 1 year ago

Thanks for the feedback!

svanharmelen commented 1 year ago

Seems to work again now! Thanks 👍🏻