m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.35k stars 27 forks source link

fix: (keymap) resolve #90 #94

Closed olivertzeng closed 3 months ago

m4xshen commented 3 months ago

@olivertzeng You need to escape $ since it is a special character in Lua string patterns:

["d%$"] = {
   message = function()
      return "Use D instead of d$"
   end,
   length = 2,
},

Same for the y$. After you change that it can be merged!

olivertzeng commented 3 months ago

Alr thanks for the tip! Sent from Proton Mail for iOS 於 週二, 6月 4, 2024 時間 16:01, Max Shen @.***> 寫道: @olivertzeng You need to escape $ since it is a special character in Lua string patterns: ["d%$"] = { message = function() return "Use D instead of d$" end, length = 2, }, Same for the y$. After you change that it can be merged!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

m4xshen commented 3 months ago

Thanks for the PR! You can now update hardtime.nvim to the latest version to use it. Btw hardtime.nvim now requires Neovim >= 0.10 due to this bug fix #77

olivertzeng commented 3 months ago

Nice