Actions menu for coc.nvim
npm install coc-actionsActions menu for coc.nvim (neovim >= v0.4.0 only)
:CocInstall coc-actions
Commands
- :CocCommand actions.open for current cursor position
Mapping
Config as coc.nvim README
`` vim`
" Remap for do codeAction of selected region
function! s:cocActionsOpenFromSelected(type) abort
execute 'CocCommand actions.open ' . a:type
endfunction
xmap
nmap
Then
- for the current selected range
- for the current word
- for the current sentence
- for the current paragraph
> :h text-objects to see more detail
- coc-actions.hideCursor: truecoc-actions.showActionKind
> Hide cursor when open actions menu
- : truecoc-actions.useCursorLine`: false
> Show action kind
-
> Using cursorline for active line, this avoids tail whitespace
!btc