commit 4c5c222269fc6282f4c3f04d49e6cd732d789138
parent 5a407b52c140f42982b6960318d9fdd78097d1af
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Sat, 23 Apr 2022 01:01:22 +0530
Add .config/nvim/utils.lua
Diffstat:
4 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.config/.gitignore b/.config/.gitignore
@@ -15,7 +15,7 @@
!lynx/
!lynx/lynx.cfg
!lynx/lynx.lss
-!nvim
+!nvim/
!nvim/**
!sh/
!sh/**
diff --git a/.config/git/config b/.config/git/config
@@ -16,6 +16,7 @@
p = pull
pu = push
rv = remote --verbose
+ sm = submodule
st = status
suir = submodule update --init --recursive
wt = worktree
diff --git a/.config/nvim/lua/utils.lua b/.config/nvim/lua/utils.lua
@@ -0,0 +1,11 @@
+local M = {}
+
+function M.map(mode, lhs, rhs, opts)
+ local options = { noremap = true }
+ if opts then
+ options = vim.tbl_extend("force", options, opts)
+ end
+ vim.api.nvim_set_keymap(mode, lhs, rhs, options)
+end
+
+return M
diff --git a/.gitignore b/.gitignore
@@ -18,3 +18,5 @@
!.local/
!.local/bin/
!.local/bin/*
+
+!.local/share/vim/pack/**/start/**