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.
This commit is contained in:
@ -120,17 +120,17 @@ return {
|
|||||||
months,
|
months,
|
||||||
},
|
},
|
||||||
typescript = {
|
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)
|
augend.constant.alias.bool, -- boolean value (true <-> false)
|
||||||
logical_alias,
|
logical_alias,
|
||||||
augend.constant.new({ elements = { "let", "const" } }),
|
augend.constant.new({ elements = { "let", "const" } }),
|
||||||
},
|
},
|
||||||
yaml = {
|
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)
|
augend.constant.alias.bool, -- boolean value (true <-> false)
|
||||||
},
|
},
|
||||||
css = {
|
css = {
|
||||||
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
augend.integer.alias.decimal_int, -- nonnegative and negative decimal number
|
||||||
augend.hexcolor.new({
|
augend.hexcolor.new({
|
||||||
case = "lower",
|
case = "lower",
|
||||||
}),
|
}),
|
||||||
@ -142,11 +142,11 @@ return {
|
|||||||
augend.misc.alias.markdown_header,
|
augend.misc.alias.markdown_header,
|
||||||
},
|
},
|
||||||
json = {
|
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)
|
augend.semver.alias.semver, -- versioning (v1.1.2)
|
||||||
},
|
},
|
||||||
lua = {
|
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.alias.bool, -- boolean value (true <-> false)
|
||||||
augend.constant.new({
|
augend.constant.new({
|
||||||
elements = { "and", "or" },
|
elements = { "and", "or" },
|
||||||
@ -155,7 +155,7 @@ return {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
python = {
|
python = {
|
||||||
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
augend.integer.alias.decimal_int, -- nonnegative and negative decimal number
|
||||||
capitalized_boolean,
|
capitalized_boolean,
|
||||||
logical_alias,
|
logical_alias,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user