From b33ba5a3f8716378e3b89d053a943476f642406c Mon Sep 17 00:00:00 2001 From: surdeus Date: Tue, 29 Aug 2023 13:42:38 +0300 Subject: [PATCH] ... --- dot/install.sh | 3 ++- nvim/lua/maps.lua | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dot/install.sh b/dot/install.sh index 537e7df..dcaa829 100755 --- a/dot/install.sh +++ b/dot/install.sh @@ -1,10 +1,11 @@ #!/bin/sh rpath="$(dirname `readlink -f $0`)" dot="$rpath/file" +cmd="$@" for i in $dot/* ; do ln="$HOME/.`basename $i`" rm -rf "$ln" echo $ln $i - ln -s "$i" "$ln" + $cmd "$i" "$ln" done diff --git a/nvim/lua/maps.lua b/nvim/lua/maps.lua index 532c33c..dd45ea1 100644 --- a/nvim/lua/maps.lua +++ b/nvim/lua/maps.lua @@ -12,9 +12,11 @@ local opts = {noremap = true, silent = true} map('n', '\\rcolor', ':colorscheme jien\n', opts) map('n', '\\ecolor', ':e $HOME/lib/nvim/colors/jien.vim\n', opts) --- File tree.s +-- Moving around. map('n', '\\home', ":cd $HOME\n", opts) - map('n', '\\ft', ':ToggleSidebarCarbon\n', opts) + +-- Search + map('n', '\\noh', ':noh\n', opts) -- Tabs. map('n', '\\tn', ':tabnew\n', opts)