0.0.17 • Published 2 months ago

coc-lightbulb v0.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

coc-lightbulb

Code action 💡 for coc.nvim

Show a lightbulb if there are available codeActions for current cursor position

demo

Install

:CocInstall coc-lightbulb

Configuration

namedefaultdescription
lightbulb.only[]Array of codeActionKind used for filtering
lightbulb.excludeFiletypes[]Disable lightbulb in these filetyps
lightbulb.enableVirtualTexttrueWhether to show virtual text(neovim only)
lightbulb.virtualTextPositionautoVirtual text position
lightbulb.virtualTextPriority50Priority of virtual text
lightbulb.enableSignfalseWhether to show sign
lightbulb.signPriority20Priority of sign
lightbulb.followDiagnostictrueDon't show lightbulb when b:coc_diagnostic_disable equal to 1
{
  "lightbulb.text": {
    // nerd-font: nf-mdi-lightbulb, text used when there're code actions
    "default": "",
    // nerd-font: nf-mdi-auto_fix, text used when there're code actions and quickfix exists
    "quickfix": ""
  }
}

Usage

  1. The variable b:coc_lightbulb_status will always be set and you can use it for the statusline

  2. How to disable lightbulb for current buffer ?

let b:coc_lightbulb_disable = 1
  1. highlights

by default

" virtual text
hi default LightBulbDefaultVirtualText guifg=#FDD164
hi default link LightBulbQuickFixVirtualText LightBulbDefaultVirtualText
" sign
hi default LightBulbDefaultSign guifg=#FDD164
hi default link LightBulbQuickFixSign LightBulbDefaultSign
" for numhl, you can set LightBulbDefaultSignLine, LightBulbQuickFixSignLine

License

MIT


This extension is built with create-coc-extension

0.0.17

2 months ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago