summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-10-04 07:42:54 +0530
committersinanmohd <sinan@firemail.cc>2023-10-04 07:42:54 +0530
commitce75801ca22f9b616f307a3b4849b4b690db43f5 (patch)
treeb6976ebd087b40e3a613183010ba4610d5c43231 /.config/nvim
parent671c1f489e318b2742c294fead82e41e26cab5f6 (diff)
config/nvim: clean up
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 01df7e6..e2cac1a 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -19,16 +19,12 @@ vim.wo.signcolumn = "yes"
-- [[ lib ]]
local map = function(mode, lhs, rhs, opts)
- if not opts then
- opts = { silent = true }
- end
+ opts = opts or { silent = true }
vim.api.nvim_set_keymap(mode, lhs, rhs, opts)
end
local mapnl = function(lhs, rhs, opts)
- if not opts then
- opts = { silent = true }
- end
+ opts = opts or { silent = true }
vim.keymap.set("n", "<leader>" .. lhs, rhs, opts)
end