1.5.0 • Published 3 years ago

coc-actions v1.5.0

Weekly downloads
519
License
MIT
Repository
github
Last release
3 years ago

coc-actions

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

image

Installation

:CocInstall coc-actions

Commands

  • :CocCommand actions.open for 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>a for the current selected range
  • <leader>aw for the current word
  • <leader>aas for the current sentence
  • <leader>aap for the current paragraph

:h text-objects to see more detail

Settings

  • coc-actions.hideCursor: true

    Hide cursor when open actions menu

  • coc-actions.showActionKind: true

    Show action kind

  • coc-actions.useCursorLine: false

    Using cursorline for active line, this avoids tail whitespace

Buy Me A Coffee ☕️

btc

image

1.5.0

3 years ago

1.4.3

3 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago