|
@@ -1,5 +1,7 @@
|
|
" Leader Key Maps
|
|
" Leader Key Maps
|
|
|
|
|
|
|
|
+let @s = 'veS"'
|
|
|
|
+
|
|
" Map leader to which_key
|
|
" Map leader to which_key
|
|
nnoremap <silent> <leader> :silent <c-u> :silent WhichKey '<Space>'<CR>
|
|
nnoremap <silent> <leader> :silent <c-u> :silent WhichKey '<Space>'<CR>
|
|
vnoremap <silent> <leader> :silent <c-u> :silent WhichKeyVisual '<Space>'<CR>
|
|
vnoremap <silent> <leader> :silent <c-u> :silent WhichKeyVisual '<Space>'<CR>
|
|
@@ -18,10 +20,6 @@ let g:which_key_map['?'] = 'search word'
|
|
let g:which_key_use_floating_win = 0
|
|
let g:which_key_use_floating_win = 0
|
|
|
|
|
|
" Change the colors if you want
|
|
" Change the colors if you want
|
|
-highlight default link WhichKey Operator
|
|
|
|
-highlight default link WhichKeySeperator DiffAdded
|
|
|
|
-highlight default link WhichKeyGroup Identifier
|
|
|
|
-highlight default link WhichKeyDesc Function
|
|
|
|
|
|
|
|
" Hide status line
|
|
" Hide status line
|
|
autocmd! FileType which_key
|
|
autocmd! FileType which_key
|
|
@@ -54,13 +52,14 @@ let g:which_key_map.a = {
|
|
\ 'name' : '+actions' ,
|
|
\ 'name' : '+actions' ,
|
|
\ 'c' : [':ColorizerToggle' , 'colorizer'],
|
|
\ 'c' : [':ColorizerToggle' , 'colorizer'],
|
|
\ 'e' : [':CocCommand explorer' , 'explorer'],
|
|
\ 'e' : [':CocCommand explorer' , 'explorer'],
|
|
|
|
+ \ 'h' : [':let @/ = ""' , 'remove search highlight'],
|
|
\ 'l' : [':Bracey' , 'start live server'],
|
|
\ 'l' : [':Bracey' , 'start live server'],
|
|
\ 'L' : [':BraceyStop' , 'stop live server'],
|
|
\ 'L' : [':BraceyStop' , 'stop live server'],
|
|
\ 'm' : [':MarkdownPreview' , 'markdown preview'],
|
|
\ 'm' : [':MarkdownPreview' , 'markdown preview'],
|
|
\ 'M' : [':MarkdownPreviewStop' , 'markdown preview stop'],
|
|
\ 'M' : [':MarkdownPreviewStop' , 'markdown preview stop'],
|
|
\ 'n' : [':set nonumber!' , 'line-numbers'],
|
|
\ 'n' : [':set nonumber!' , 'line-numbers'],
|
|
|
|
+ \ 's' : [':s/\%V\(.*\)\%V/"\1"/' , 'surround'],
|
|
\ 'r' : [':set norelativenumber!' , 'relative line nums'],
|
|
\ 'r' : [':set norelativenumber!' , 'relative line nums'],
|
|
- \ 's' : [':let @/ = ""' , 'remove search highlight'],
|
|
|
|
\ 't' : [':FloatermToggle' , 'terminal'],
|
|
\ 't' : [':FloatermToggle' , 'terminal'],
|
|
\ 'v' : [':Codi' , 'virtual repl on'],
|
|
\ 'v' : [':Codi' , 'virtual repl on'],
|
|
\ 'V' : [':Codi!' , 'virtual repl off'],
|
|
\ 'V' : [':Codi!' , 'virtual repl off'],
|