diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-01-05 01:50:20 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-01-05 01:50:20 +0100 |
commit | 2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch) | |
tree | 48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/dial.fnl | |
parent | 16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff) |
Refactor
Diffstat (limited to 'fnl/plugins/dial.fnl')
-rw-r--r-- | fnl/plugins/dial.fnl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fnl/plugins/dial.fnl b/fnl/plugins/dial.fnl new file mode 100644 index 0000000..7a888eb --- /dev/null +++ b/fnl/plugins/dial.fnl @@ -0,0 +1,25 @@ +;; Better incrementation/decrementation. + +(local keys [{1 :<C-a> + 2 (fn [] + (let [dial (require :dial.map)] + (dial.inc_normal))) + :expr true + :desc :Increment} + {1 :<C-x> + 2 (fn [] + (let [dial (require :dial.map)] + (dial.dec_normal))) + :expr true + :desc :Decrement}]) + +(fn config [] + (let [cfg (require :dial.config) + augend (require :dial.augend)] + (cfg.augends:register_group {:default [augend.integer.alias.decimal + augend.integer.alias.hex + (. augend.date.alias "%Y-%m-%d") + augend.constant.alias.bool + augend.semver.alias.semver]}))) + +{1 :monaqa/dial.nvim : keys : config} |