coc-actions
v1.5.0
Published
Actions menu for coc.nvim
Downloads
49
Readme
coc-actions
Actions menu for coc.nvim (neovim >= v0.4.0 only)

Installation
:CocInstall coc-actions
Commands
:CocCommand actions.openfor current cursor position
Mapping
Config as coc.nvim README
" Remap for do codeAction of selected region
function! s:cocActionsOpenFromSelected(type) abort
execute 'CocCommand actions.open ' . a:type
endfunction
xmap <silent> <leader>a :<C-u>execute 'CocCommand actions.open ' . visualmode()<CR>
nmap <silent> <leader>a :<C-u>set operatorfunc=<SID>cocActionsOpenFromSelected<CR>g@Then
<leader>afor the current selected range<leader>awfor the current word<leader>aasfor the current sentence<leader>aapfor the current paragraph
:h text-objectsto see more detail
Settings
coc-actions.hideCursor: trueHide cursor when open actions menu
coc-actions.showActionKind: trueShow action kind
coc-actions.useCursorLine: falseUsing cursorline for active line, this avoids tail whitespace
Buy Me A Coffee ☕️

