mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] add vim-sneak
This commit is contained in:
parent
9ce4eb6d46
commit
1c5373a9bf
3 changed files with 24 additions and 13 deletions
|
@ -17,7 +17,7 @@
|
||||||
let g:colors_name = g:dotfiles_colorscheme_name
|
let g:colors_name = g:dotfiles_colorscheme_name
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Highlighting function {{{
|
" The highlighting function {{{
|
||||||
function s:is_number(value)
|
function s:is_number(value)
|
||||||
return type(a:value) == v:t_number
|
return type(a:value) == v:t_number
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -134,11 +134,18 @@
|
||||||
call s:hi('PMenu', 'fg', 0x1, '', '')
|
call s:hi('PMenu', 'fg', 0x1, '', '')
|
||||||
call s:hi('PMenuSel', 0x1, 'fg', '', '')
|
call s:hi('PMenuSel', 0x1, 'fg', '', '')
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" CtrlSF {{{
|
|
||||||
hi! link ctrlsfMatch Search
|
hi! link ctrlsfMatch Search
|
||||||
hi! link ctrlsfLnumMatch ctrlsfMatch
|
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 {{{
|
" AWK {{{
|
||||||
|
@ -382,10 +389,3 @@
|
||||||
hi! link zshFunction Function
|
hi! link zshFunction Function
|
||||||
hi! link zshVariable Variable
|
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)
|
|
||||||
" }}}
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ Plug 'junegunn/vim-plug'
|
||||||
|
|
||||||
" Editing {{{
|
" Editing {{{
|
||||||
if g:vim_ide
|
if g:vim_ide
|
||||||
Plug 'easymotion/vim-easymotion'
|
" Plug 'easymotion/vim-easymotion'
|
||||||
Plug 'junegunn/vim-easy-align'
|
Plug 'junegunn/vim-easy-align'
|
||||||
endif
|
endif
|
||||||
Plug 'Raimondi/delimitMate'
|
Plug 'Raimondi/delimitMate'
|
||||||
|
@ -36,13 +36,14 @@ Plug 'junegunn/vim-plug'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
|
Plug 'idbrii/detectindent'
|
||||||
Plug 'henrik/vim-indexed-search'
|
Plug 'henrik/vim-indexed-search'
|
||||||
Plug 'andymass/vim-matchup'
|
Plug 'andymass/vim-matchup'
|
||||||
Plug 'inkarkat/vim-ingo-library' " required by LineJuggler
|
Plug 'inkarkat/vim-ingo-library' " required by LineJuggler
|
||||||
Plug 'inkarkat/vim-LineJuggler', { 'branch': 'stable' }
|
Plug 'inkarkat/vim-LineJuggler', { 'branch': 'stable' }
|
||||||
Plug 'reedes/vim-pencil'
|
Plug 'reedes/vim-pencil'
|
||||||
Plug 'idbrii/detectindent'
|
|
||||||
Plug 'tommcdo/vim-exchange'
|
Plug 'tommcdo/vim-exchange'
|
||||||
|
Plug 'justinmk/vim-sneak'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Text objects {{{
|
" Text objects {{{
|
||||||
|
|
|
@ -172,6 +172,7 @@ set commentstring=//%s
|
||||||
|
|
||||||
|
|
||||||
" plugins {{{
|
" plugins {{{
|
||||||
|
|
||||||
let g:delimitMate_expand_space = 1
|
let g:delimitMate_expand_space = 1
|
||||||
let g:delimitMate_expand_cr = 1
|
let g:delimitMate_expand_cr = 1
|
||||||
|
|
||||||
|
@ -183,6 +184,15 @@ set commentstring=//%s
|
||||||
|
|
||||||
xmap <leader>ga <Plug>(LiveEasyAlign)
|
xmap <leader>ga <Plug>(LiveEasyAlign)
|
||||||
nmap <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
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue