From c879b397c7c4998c060247c0aa7ab68400967022 Mon Sep 17 00:00:00 2001 From: Nicky Meuleman Date: Thu, 7 Nov 2024 16:16:41 +0100 Subject: [PATCH] fix(dial): follow comment explanation for integers (#4658) relevant doc page: https://github.com/monaqa/dial.nvim?tab=readme-ov-file#augend-alias ## Description The specific augend for integers in several languages is a different one than what the comment explaining it suggests. Changed the augend to the one that includes negative integers like the comment suggests. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --- lua/lazyvim/plugins/extras/editor/dial.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/dial.lua b/lua/lazyvim/plugins/extras/editor/dial.lua index 5d2dcaa1..4bfb285d 100644 --- a/lua/lazyvim/plugins/extras/editor/dial.lua +++ b/lua/lazyvim/plugins/extras/editor/dial.lua @@ -120,17 +120,17 @@ return { months, }, typescript = { - augend.integer.alias.decimal, -- nonnegative and negative decimal number + augend.integer.alias.decimal_int, -- nonnegative and negative decimal number augend.constant.alias.bool, -- boolean value (true <-> false) logical_alias, augend.constant.new({ elements = { "let", "const" } }), }, yaml = { - augend.integer.alias.decimal, -- nonnegative and negative decimal number + augend.integer.alias.decimal_int, -- nonnegative and negative decimal number augend.constant.alias.bool, -- boolean value (true <-> false) }, css = { - augend.integer.alias.decimal, -- nonnegative and negative decimal number + augend.integer.alias.decimal_int, -- nonnegative and negative decimal number augend.hexcolor.new({ case = "lower", }), @@ -142,11 +142,11 @@ return { augend.misc.alias.markdown_header, }, json = { - augend.integer.alias.decimal, -- nonnegative and negative decimal number + augend.integer.alias.decimal_int, -- nonnegative and negative decimal number augend.semver.alias.semver, -- versioning (v1.1.2) }, lua = { - augend.integer.alias.decimal, -- nonnegative and negative decimal number + augend.integer.alias.decimal_int, -- nonnegative and negative decimal number augend.constant.alias.bool, -- boolean value (true <-> false) augend.constant.new({ elements = { "and", "or" }, @@ -155,7 +155,7 @@ return { }), }, python = { - augend.integer.alias.decimal, -- nonnegative and negative decimal number + augend.integer.alias.decimal_int, -- nonnegative and negative decimal number capitalized_boolean, logical_alias, },