1
0
Fork 0

fish: fix git check; nvim: indent visibility plugin

This commit is contained in:
Von Random 2023-03-17 12:49:42 +02:00
parent 0067fb809b
commit 6290bd1624
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,8 @@
function prompt.git
git rev-parse 2> /dev/null || return
set -l is_git_tree (git rev-parse --is-inside-work-tree 2>/dev/null)
string match -qe 'true' "$is_git_tree" || return
git status --porcelain -bu | while read line
if string match -qr "^##" "$line"
if string match -qr '^##' "$line"
set git_branch (string match -r '[^# .]+' "$line")
string match -qr '\[behind' $line && set git_branch "$git_branch?"
string match -qr '\[ahead' $line && set git_branch "$git_branch!"

View file

@ -6,6 +6,7 @@ local function plugins(use)
use 'hoob3rt/lualine.nvim'
use 'hashivim/vim-terraform'
use 'khaveesh/vim-fish-syntax'
use 'lukas-reineke/indent-blankline.nvim'
use 'mhinz/vim-signify'
use 'tpope/vim-rsi'
use 'tpope/vim-vinegar'