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 | |
parent | 3da566d1c3785ff1fc1911dc4127c8463b08ff90 (diff) |
rework keymaps, help windows
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.' ':'' |