summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-11-20 13:57:24 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2020-11-20 13:57:24 -0500
commit30ce5145950098a2bbd40568580307189aa3d362 (patch)
tree13ffe73097d1854f55f6e4d07dd4b029f53299b4 /.config/nvim
parent13429d1b0227160157ec2e66f411321c94af2cbd (diff)
Embracing vim-fugitive and todoist.nvim
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim14
1 files changed, 14 insertions, 0 deletions
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 <C-Enter> <leader>l
" Arduino settings
let g:arduino_cmd = '/usr/bin/arduino'
let g:arduino_dir = '/usr/share/arduino'
+" Vim fugitive settings
+nmap <leader>gh :diffget //3<CR>
+nmap <leader>gu :diffget //2<CR>
+nmap <leader>gs :G<CR>
+nmap <leader>gc :Gcommit<CR>
" #---Universal Macros---# "