fish: fix git check; nvim: indent visibility plugin
This commit is contained in:
parent
0067fb809b
commit
6290bd1624
2 changed files with 4 additions and 2 deletions
|
@ -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!"
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue