Add True/False to dial (#707)

For languages like Python.
This commit is contained in:
jimcornmell 2021-07-05 17:01:10 +01:00 committed by GitHub
parent 5eed5cf3ec
commit c7ff6f2b6f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,14 @@ vmap g<C-x> <Plug>(dial-decrement-additional)
strlist = { "true", "false" },
}
table.insert(dial.config.searchlist.normal, "custom#boolean")
-- For Languages which prefer True/False, e.g. python.
dial.augends["custom#Boolean"] = dial.common.enum_cyclic {
name = "Boolean",
strlist = { "True", "False" },
}
table.insert(dial.config.searchlist.normal, "custom#Boolean")
end
return M