Socket
Socket
Sign inDemoInstall

coc-actions

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    coc-actions

Actions menu for coc.nvim


Version published
Maintainers
1
Install size
80.9 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 08 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc