aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-02-25 22:49:45 +0100
committerKarel Kočí <cynerd@email.cz>2024-02-25 22:49:45 +0100
commit5f308879ce546850477c6d353dc851f6a623728d (patch)
treecbd86618baf9aaabb5912ee604d684af0d61dc0a
parent000268bfffeb92a0afe7e6953b0e20ee395d5621 (diff)
downloadshellrc-5f308879ce546850477c6d353dc851f6a623728d.tar.gz
shellrc-5f308879ce546850477c6d353dc851f6a623728d.tar.bz2
shellrc-5f308879ce546850477c6d353dc851f6a623728d.zip
Migrate from vim to nvim
-rw-r--r--shellrc.d/alias6
-rw-r--r--shellrc.d/dev4
2 files changed, 9 insertions, 1 deletions
diff --git a/shellrc.d/alias b/shellrc.d/alias
index 86108b8..3db58b3 100644
--- a/shellrc.d/alias
+++ b/shellrc.d/alias
@@ -11,7 +11,7 @@ alias cgdb='cgdb -q'
alias octave='octave-cli -q'
alias ssh='TERM="xterm-256color" ssh'
alias gst='git status'
-alias v='vim'
+alias v='nvim'
alias watch='watch -n 1 -c -t -d'
alias rej='find -name \*.rej'
alias orig='find -name \*.orig'
@@ -29,3 +29,7 @@ fi
if command -v sdcv 2>/dev/null >&2; then
alias sdcv='sdcv -c'
fi
+
+nvim_config() (
+ cd ~/.config/nvim || v init.vim
+)
diff --git a/shellrc.d/dev b/shellrc.d/dev
index 4167c54..c28ec09 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -62,3 +62,7 @@ if command -v bear >/dev/null; then
alias mbmake='bmake -j$(($(nproc) * 2)) -l$(nproc)'
fi
+
+glv() {
+ GITLAB_TOKEN="$(pass gitlab.com/nvim-token)" nvim -c 'lua require("gitlab").review()'
+}