aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorahhshm <87268103+ahhshm@users.noreply.github.com>2022-04-22 12:30:42 +0430
committerGitHub <noreply@github.com>2022-04-22 12:30:42 +0430
commit095b75b688a6722a381f65a771124315ce1dd72d (patch)
treede4becc92205b356e4f5d1bb0e1b78e9dddcb8cd
parentMerge pull request #2 from ahhshm/patch-1 (diff)
refactor(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