diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/help.vim | 2 | ||||
-rw-r--r-- | plugin/statusline.vim | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/plugin/help.vim b/plugin/help.vim index 9e1c998..decdab6 100644 --- a/plugin/help.vim +++ b/plugin/help.vim | |||
@@ -12,5 +12,5 @@ function! HelpInNewTab () | |||
12 | endif | 12 | endif |
13 | endfunction | 13 | endfunction |
14 | 14 | ||
15 | let g:help_in_tabs = 1 | 15 | let g:help_in_tabs = 0 |
16 | 16 | ||
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.' ':'' |