commit 30ce5145950098a2bbd40568580307189aa3d362
parent 13429d1b0227160157ec2e66f411321c94af2cbd
Author: Benjamin Chausse <benjamin@chausse.xyz>
Date:   Fri, 20 Nov 2020 13:57:24 -0500

Embracing vim-fugitive and todoist.nvim

Diffstat:
M.config/nvim/init.vim | 14++++++++++++++
M.config/sxhkd/sxhkdrc | 4++--
A.local/bin/dwmbar/dwmb-debarque | 13+++++++++++++
M.profile | 1+
4 files changed, 30 insertions(+), 2 deletions(-)

diff --git 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---# " diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -145,9 +145,9 @@ XF86WLAN ## TUI Audio Mixer (alsamixer) super + p killall alsamixer || dropdowntoggle audio alsamixer -c 0 -## TODOs (todotxt-machine) +## TODOs (Todoist.nvim) super + space - killall todotxt-machine || dropdowntoggle todos todotxt-machine + dropdowntoggle todoist nvim +Todoist ## Terminal Calculator super + a dropdowntoggle calc tmux-r diff --git a/.local/bin/dwmbar/dwmb-debarque b/.local/bin/dwmbar/dwmb-debarque @@ -0,0 +1,13 @@ +#!/bin/sh + +count="$(curl https://www.ladebarque.com/achalandage | + grep "il y a " | + sed 's/.*il\ y\ a\ en\ ce\ moment.nbsp;\s//; s/.nbsp.*//')" + +echo "  $count " + +case $BLOCK_BUTTON in + 1) $BROWSER https://www.ladebarque.com/achalandage ;; + 2) notify-send -a " La Débarque" "Syncing..." && kill -51 $(pidof dwmblocks) && notify-send -a " La Débarque" "Done!" ;; + 3) notify-send -a "La Débarque" "This block shows the number of people currently climbing at my local gym." ;; +esac diff --git a/.profile b/.profile @@ -18,6 +18,7 @@ export REFERBIB=$HOME/Dropbox/A/Scholar/All/References/bibliography.refer export DISTRIB_ID=arch export DISTRIB_RELEASE=$(uname -r) export XDG_CONFIG_HOME=$HOME/.config +export TODOIST_API_KEY="$(pass Todoist/api)" # export GOROOT=/usr/bin/go # fix "xdg-open fork-bomb" export your preferred browser from here