diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 3b4da53..8e65a67 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -153,6 +153,10 @@ return require('packer').startup(function() require('other').autosession() end } + use { + 'ellisonleao/glow.nvim', + ft = { 'md', 'markdown', } + } -- Conveniences use { -- Undo tree diff --git a/.zshrc b/.zshrc index 91c1c14..502b299 100644 --- a/.zshrc +++ b/.zshrc @@ -85,7 +85,7 @@ # Edit config files alias \ - nvc="(cd ~/.config/nvim && nvim)" \ + nvc="(cd ~/.config/nvim/lua && nvim)" \ zshrc="$EDITOR ~/.zshrc" \ fstab="sudo $EDITOR /etc/fstab" \ @@ -158,9 +158,12 @@ # an improved way to manage the todo list todo() { + ( cd "$(dirname "$(realpath ~/todo)")" - test -d .git || git rev-parse --git-dir > /dev/null 2>&1 && echo 'pulling repository' && git pull + # only pull the repo if there is some argument + [ -z "$1" ] || test -d .git || git rev-parse --git-dir > /dev/null 2>&1 && echo 'pulling repository' && git pull "$EDITOR" ~/todo + ) } # Simple extraction script. Taken from manjaro's .bashrc @@ -317,6 +320,7 @@ echo 'Error: Could not `cd` into the repo' return 1 fi + ls } calc() {