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

Dial.nvim decrement not working properly #8

Open
escwxyz opened this issue Apr 25, 2023 · 0 comments
Open

Dial.nvim decrement not working properly #8

escwxyz opened this issue Apr 25, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@escwxyz
Copy link
Owner

escwxyz commented Apr 25, 2023

return {
  "monaqa/dial.nvim",
  keys = {
    {
      "<c-]>",
      function()
        require("dial.map").manipulate("increment", "normal")
      end,
      desc = "Increment",
    },
    {
      "<c-[>",
      function()
        require("dial.map").manipulate("decrement", "normal")
      end,
      desc = "Decrement",
    },
    {
      "<c-]>",
      mode = "v",
      function()
        require("dial.map").manipulate("increment", "visual")
      end,
      desc = "Increment",
    },
    {
      "<c-[>",
      mode = "v",
      function()
        require("dial.map").manipulate("decrement", "visual")
      end,
      desc = "Decrement",
    },
  },

  -- TODO: check https://github.com/monaqa/dial.nvim/blob/master/doc/dial.txt#L200 to add more groups
  -- config = function()
  --   local augend = require("dial.augend")
  --   require("dial.config").augends:register_group({
  --     -- default augends used when no group name is specified
  --     default = {
  --       augend.integer.alias.decimal, -- nonnegative decimal number
  --       augend.integer.alias.hex, -- nonnegative hex number
  --       -- date (2022/02/19, etc.)
  --       augend.date.new({
  --         pattern = "%Y/%m/%d",
  --         default_kind = "day",
  --       }),
  --     },
  --   })
  -- end,
}
@escwxyz escwxyz added the bug Something isn't working label Apr 25, 2023
@escwxyz escwxyz self-assigned this Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant