From bfa321c1bd6bdb5cde233e07fef68734b8ae7b99 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 10 Aug 2020 11:01:35 -0400 Subject: added coc word search --- general/functions.vim | 9 ++++----- keys/which-key.vim | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/general/functions.vim b/general/functions.vim index 0860b920..94ace199 100644 --- a/general/functions.vim +++ b/general/functions.vim @@ -5,15 +5,14 @@ augroup auto_spellcheck autocmd BufNewFile,BufRead *.md setlocal spell augroup END -function! OpenLiveServer() - echo 'live server is on' - silent !live-server % & -endfunction +" function! OpenLiveServer() +" echo 'live server is on' +" silent !live-server % & +" endfunction command Serve :call OpenLiveServer() nnoremap bs :call OpenLiveServer() -" Remove trailing whitespaces automatically before save " augroup strip_ws " autocmd BufWritePre * call utils#stripTrailingWhitespaces() " augroup END diff --git a/keys/which-key.vim b/keys/which-key.vim index b24cbc82..79a9f2b1 100644 --- a/keys/which-key.vim +++ b/keys/which-key.vim @@ -10,6 +10,9 @@ let g:which_key_map = {} let g:which_key_sep = '→' " set timeoutlen=100 +" Coc Search & refactor +nnoremap ? :CocSearch =expand("") +let g:which_key_map['?'] = 'search word' " Not a fan of floating windows for this let g:which_key_use_floating_win = 0 -- cgit v1.2.3