From 4062c5736e7868e77d83af519b3759e38d90d611 Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Wed, 21 Jul 2021 23:18:32 -0400 Subject: actions --- .config/nvim/init.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5d83b96..8426b93 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -44,6 +44,22 @@ function! HasPaste() return '' endfunction +" Applying codeAction to the selected region. + +" Example: \`aap\` for current paragraph + +xmap a (coc-codeaction-selected) + +nmap a (coc-codeaction-selected) + + +" My config + +" Remap keys for applying codeAction to the current word. + +" I add w mean select current word for codeaction. + +nmap ac (coc-codeaction-selected)w if system('uname -s') == "Darwin\n" set clipboard=unnamed "OSX -- cgit v1.2.3-70-g09d2