mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 11:23:40 +00:00
Remove git branch from statusline in vim because it lags on macos
This commit is contained in:
@@ -218,7 +218,7 @@ in
|
||||
tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
terminal = "screen-256color";
|
||||
terminal = "xterm-256color";
|
||||
customPaneNavigationAndResize = true;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
{
|
||||
@@ -303,13 +303,10 @@ in
|
||||
vim-fugitive
|
||||
vim-gitgutter
|
||||
vim-go
|
||||
vim-javacomplete2
|
||||
vim-javascript
|
||||
vim-markdown
|
||||
vim-nix
|
||||
vim-pandoc
|
||||
vim-prettier
|
||||
vim-pandoc-syntax
|
||||
vim-repeat
|
||||
vim-sneak
|
||||
vim-surround
|
||||
|
@@ -11,7 +11,6 @@ set statusline=
|
||||
set statusline+=%#Pmenu#
|
||||
set statusline+=%{StatuslineMode()}
|
||||
set statusline+=%#PmenuSel#
|
||||
set statusline+=%{StatuslineGit()}
|
||||
set statusline+=%#LineNr#
|
||||
set statusline+=\ %f
|
||||
set statusline+=%m
|
||||
@@ -49,15 +48,6 @@ function! StatuslineMode()
|
||||
|
||||
endfunction
|
||||
|
||||
function! GitBranch()
|
||||
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
|
||||
endfunction
|
||||
|
||||
function! StatuslineGit()
|
||||
let l:branchname = GitBranch()
|
||||
return strlen(l:branchname) > 0?' '.l:branchname.' ':''
|
||||
endfunction
|
||||
|
||||
augroup SetStatusline
|
||||
autocmd!
|
||||
autocmd BufEnter,WinEnter * call ActivateStatusline()
|
||||
|
Reference in New Issue
Block a user