From 30ce5145950098a2bbd40568580307189aa3d362 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 20 Nov 2020 13:57:24 -0500 Subject: Embracing vim-fugitive and todoist.nvim --- .config/nvim/init.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 8894158..a06a92c 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -33,6 +33,8 @@ Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } " Go Deoplete sources Plug 'stamblerre/gocode', { 'rtp': 'vim', 'do': '~/.vim/plugged/gocode/vim/symlink.sh' } Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'} +" Todoist with vim? +Plug 'romgrk/todoist.nvim', { 'do': ':TodoistInstall' } " LaTeX deoplete Plug 'hisaknown/deoplete-latex' " Turning vim into an R IDE @@ -220,6 +222,13 @@ let g:tex_no_error=1 " Lightline config let g:lightline = { \ 'colorscheme': 'friffle', + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'gitbranch': 'FugitiveHead' + \ }, \ } set noshowmode @@ -243,6 +252,11 @@ nmap l " Arduino settings let g:arduino_cmd = '/usr/bin/arduino' let g:arduino_dir = '/usr/share/arduino' +" Vim fugitive settings +nmap gh :diffget //3 +nmap gu :diffget //2 +nmap gs :G +nmap gc :Gcommit " #---Universal Macros---# " -- cgit v1.2.3