From 47bb74f7ada1ac338c1509994cd7e837a59f1456 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 30 Jan 2022 11:27:25 +0530 Subject: add ts playground, remove git from statusline --- plugin/statusline.vim | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'plugin') diff --git a/plugin/statusline.vim b/plugin/statusline.vim index d1f7d05..a5264a4 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim @@ -39,20 +39,6 @@ hi User9 ctermfg=00 ctermbg=0 highlight EndOfBuffer ctermfg=black ctermbg=black -function! GitBranch() - return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") -endfunction - -function! TreesitterStatus() - let l:status = nvim_treesitter#statusline(90) - return (status == "null")? "" : status -endfunction - -function! StatuslineGit() - let l:branchname = GitBranch() - return strlen(l:branchname) > 0?l:branchname.' ':'' -endfunction - function! ReadOnly() abort if !&modifiable && &readonly return ' RO' @@ -119,8 +105,6 @@ function! StatusLine(mode) abort " active if a:mode ==# 'active' - let l:line.='%7*%{StatuslineGit()}' - let l:line.='%<' let l:line.=Filepath() let l:line.='%5*' let l:line.=QuickFixStatus() -- cgit v1.2.3