diff options
author | Akshay <[email protected]> | 2021-03-07 04:23:34 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-03-07 04:23:34 +0000 |
commit | 95b0a21743998be8a486f9cb6eb3301b8f7af9e0 (patch) | |
tree | a1440c63a6e05c5bcf1d110a9ac46c17da6e2642 /plugin/statusline.vim | |
parent | 3da566d1c3785ff1fc1911dc4127c8463b08ff90 (diff) |
rework keymaps, help windows
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.' ':'' |