From 91205d2d4152b3bb828f1af58375ee7c8201b199 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 27 Nov 2021 08:41:45 -0800 Subject: [PATCH] added vim-fugitive for git commands from nvim, and shows git branch in lightline plugin --- nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index dae25abd..a81fccdd 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -98,7 +98,7 @@ nmap :wincmd l set noshowmode " Set lightline colorscheme -let g:lightline = {'colorscheme': 'one'} +let g:lightline = {'colorscheme': 'one', 'active': { 'left': [['mode', 'paste'], ['gitbranch', 'readonly', 'filename', 'modified']]}, 'component_function': {'gitbranch': 'FugitiveHead'}} " Custom keybindings