Home

Awesome

coc-actions

Note coc.nvim already support floating actions window, use it instead.

Actions menu for coc.nvim (neovim >= v0.4.0 only)

image

Installation

:CocInstall coc-actions

Commands

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

:h text-objects to see more detail

Settings

Buy Me A Coffee ☕️

btc

image