From 5f308879ce546850477c6d353dc851f6a623728d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 25 Feb 2024 22:49:45 +0100 Subject: Migrate from vim to nvim --- shellrc.d/alias | 6 +++++- shellrc.d/dev | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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()' +} -- cgit v1.2.3