diff options
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 |