aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidhanth Rathod <siduck@tutanota.com>2022-04-22 14:04:51 +0530
committerGitHub <noreply@github.com>2022-04-22 14:04:51 +0530
commitec3baf095e487f6491e93abfc0c52a82d35c76a2 (patch)
treede4becc92205b356e4f5d1bb0e1b78e9dddcb8cd
parentMerge pull request #2 from ahhshm/patch-1 (diff)
parentrefactor(readme): define `opts` (diff)
Merge pull request #4 from ahhshm/patch-2
fix(readme): define `opts`
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4533861..fd8edda 100644
--- a/README.md
+++ b/README.md
@@ -104,6 +104,7 @@ local mappings = {
{ 'n', '<Leader>s', function () terminal.new_or_toggle('horizontal') end },
{ 'n', '<Leader>v', function () terminal.new_or_toggle('vertical') end },
}
+local opts = { noremap = true, silent = true }
for _, mapping in ipairs(mappings) do
vim.keymap.set(mapping[1], mapping[2], mapping[3], opts)
end