aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorzbirenbaum <zacharyobirenbaum@gmail.com>2022-04-25 03:09:13 -0400
committerzbirenbaum <zacharyobirenbaum@gmail.com>2022-04-25 03:09:13 -0400
commit2403f80945d76490c91a7be82dcb4aa3db27a929 (patch)
tree6b3bcd8f833adcebeb56156267bb6cf64665e58e /README.md
parentchange default horizontal mapping (diff)
dramatically simplify setting mappings in setup
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index eb51f1a..c1188f8 100644
--- a/README.md
+++ b/README.md
@@ -42,9 +42,9 @@ require("nvterm").setup({
},
mappings = {
toggle = {
- { '<A-i>', function () terminal.new_or_toggle('float') end },
- { '<A-h>', function () terminal.new_or_toggle('horizontal') end },
- { '<A-v>', function () terminal.new_or_toggle('vertical') end },
+ float = "<A-i>",
+ horizontal = "<A-h>",
+ vertical = "<A-v>",
}
}
})