diff options
author | sinanmohd <sinan@firemail.cc> | 2023-10-04 07:42:54 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-10-04 07:42:54 +0530 |
commit | ce75801ca22f9b616f307a3b4849b4b690db43f5 (patch) | |
tree | b6976ebd087b40e3a613183010ba4610d5c43231 /.config/nvim/init.lua | |
parent | 671c1f489e318b2742c294fead82e41e26cab5f6 (diff) |
config/nvim: clean up
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r-- | .config/nvim/init.lua | 8 |
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 |