[nvim] add vim-sneak

This commit is contained in:
Dmytro Meleshko 2020-11-21 18:59:24 +02:00
parent 9ce4eb6d46
commit 1c5373a9bf
3 changed files with 24 additions and 13 deletions

View File

@ -17,7 +17,7 @@
let g:colors_name = g:dotfiles_colorscheme_name
" }}}
" Highlighting function {{{
" The highlighting function {{{
function s:is_number(value)
return type(a:value) == v:t_number
endfunction
@ -134,11 +134,18 @@
call s:hi('PMenu', 'fg', 0x1, '', '')
call s:hi('PMenuSel', 0x1, 'fg', '', '')
" }}}
" CtrlSF {{{
hi! link ctrlsfMatch Search
hi! link ctrlsfLnumMatch ctrlsfMatch
call s:hi('SpellBad', 'bg', '', 'undercurl', 0x8)
call s:hi('SpellLocal', 'bg', '', 'undercurl', 0xC)
call s:hi('SpellCap', 'bg', '', 'undercurl', 0xD)
call s:hi('SpellRare', 'bg', '', 'undercurl', 0xE)
call s:hi('Sneak', 'bg', 0xB, 'bold', '')
hi! link SneakScope Visual
hi! link SneakLabel Sneak
" }}}
" AWK {{{
@ -382,10 +389,3 @@
hi! link zshFunction Function
hi! link zshVariable Variable
" }}}
" Spelling {{{
call s:hi('SpellBad', 'bg', '', 'undercurl', 0x8)
call s:hi('SpellLocal', 'bg', '', 'undercurl', 0xC)
call s:hi('SpellCap', 'bg', '', 'undercurl', 0xD)
call s:hi('SpellRare', 'bg', '', 'undercurl', 0xE)
" }}}

View File

@ -28,7 +28,7 @@ Plug 'junegunn/vim-plug'
" Editing {{{
if g:vim_ide
Plug 'easymotion/vim-easymotion'
" Plug 'easymotion/vim-easymotion'
Plug 'junegunn/vim-easy-align'
endif
Plug 'Raimondi/delimitMate'
@ -36,13 +36,14 @@ Plug 'junegunn/vim-plug'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'Yggdroot/indentLine'
Plug 'idbrii/detectindent'
Plug 'henrik/vim-indexed-search'
Plug 'andymass/vim-matchup'
Plug 'inkarkat/vim-ingo-library' " required by LineJuggler
Plug 'inkarkat/vim-LineJuggler', { 'branch': 'stable' }
Plug 'reedes/vim-pencil'
Plug 'idbrii/detectindent'
Plug 'tommcdo/vim-exchange'
Plug 'justinmk/vim-sneak'
" }}}
" Text objects {{{

View File

@ -172,6 +172,7 @@ set commentstring=//%s
" plugins {{{
let g:delimitMate_expand_space = 1
let g:delimitMate_expand_cr = 1
@ -183,6 +184,15 @@ set commentstring=//%s
xmap <leader>ga <Plug>(LiveEasyAlign)
nmap <leader>ga <Plug>(LiveEasyAlign)
let g:sneak#prompt = 'sneak> '
map f <Plug>Sneak_f
map F <Plug>Sneak_F
map t <Plug>Sneak_t
map T <Plug>Sneak_T
noremap <leader>s s
noremap <leader>S S
" }}}