commit 5c636bf50aafa8e93d1f8c4370f2b9e940144e9d
parent a4160c66b4e7a34c62576eaa555e0ae3477178e1
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(+), 2 deletions(-)
diff --git a/.config/.gitignore b/.config/.gitignore
@@ -16,8 +16,7 @@
!lynx/
!lynx/lynx.cfg
!lynx/lynx.lss
-!nvim
-!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/**