diff options
Diffstat (limited to 'plugin/statusline.vim')
-rw-r--r-- | plugin/statusline.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/statusline.vim b/plugin/statusline.vim index 5465d40..4905cba 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim | |||
@@ -43,6 +43,11 @@ function! GitBranch() | |||
43 | return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") | 43 | return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") |
44 | endfunction | 44 | endfunction |
45 | 45 | ||
46 | function! TreesitterStatus() | ||
47 | let l:status = nvim_treesitter#statusline(90) | ||
48 | return (status == "null")? "" : status | ||
49 | endfunction | ||
50 | |||
46 | function! StatuslineGit() | 51 | function! StatuslineGit() |
47 | let l:branchname = GitBranch() | 52 | let l:branchname = GitBranch() |
48 | return strlen(l:branchname) > 0?l:branchname.' ':'' | 53 | return strlen(l:branchname) > 0?l:branchname.' ':'' |