summaryrefslogtreecommitdiff
path: root/nvimrc
diff options
context:
space:
mode:
Diffstat (limited to 'nvimrc')
-rw-r--r--nvimrc17
1 files changed, 13 insertions, 4 deletions
diff --git a/nvimrc b/nvimrc
index e087bbc..a94c9ad 100644
--- a/nvimrc
+++ b/nvimrc
@@ -39,6 +39,7 @@ Plug 'ton/vim-bufsurf'
Plug 'tpope/vim-abolish', { 'for' : 'tex' }
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
+Plug 'tpope/vim-git'
Plug 'tpope/vim-obsession'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-sensible'
@@ -185,7 +186,7 @@ set hidden
silent! colo seoul256
highlight Comment cterm=italic
set t_ZH=
-set t_ZR=[23m
+set t_ZR=
"" Maps
@@ -239,9 +240,6 @@ nnoremap <Return> o<Esc>
nnoremap <s-Return> O<Esc>
nnoremap >f :FZF ~ <cr>
-" Substitute shadowed by vim-sneak
-nnoremap _ s
-
" Git
nnoremap <Leader>gs :Gstatus<cr>
nnoremap <Leader>gr :Gread<cr>
@@ -283,6 +281,17 @@ augroup nvimrc
\ endif
augroup END
+"" Taken from Junegunn Chong
+nnoremap <silent> <Leader>C :call fzf#run({
+\ 'source':
+\ map(split(globpath(&rtp, "colors/*.vim"), "\n"),
+\ "substitute(fnamemodify(v:val, ':t'), '\\..\\{-}$', '', '')"),
+\ 'sink': 'colo',
+\ 'options': '+m',
+\ 'left': 30,
+\ 'launcher': 'iterm2-launcher 20 30 %s'
+\ })<CR>
+
"" Experimental
let g:notes_directories = ['~/dotfiles/notes']
" Idea: instant download colorscheme