dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit 2a03651be3f6a0228243bcc9b41d236d0b3820fd
parent 5a407b52c140f42982b6960318d9fdd78097d1af
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Sat, 23 Apr 2022 01:02:02 +0530

Merge pull request #34 from bharatvaj/macos

Add .config/nvim/utils.lua
Diffstat:
M.config/.gitignore | 2+-
M.config/git/config | 1+
A.config/nvim/lua/utils.lua | 11+++++++++++
M.gitignore | 2++
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/**