Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiyaowong/coc-lightbulb
VSCode 💡 for coc.nvim
https://github.com/xiyaowong/coc-lightbulb
Last synced: 4 months ago
JSON representation
VSCode 💡 for coc.nvim
- Host: GitHub
- URL: https://github.com/xiyaowong/coc-lightbulb
- Owner: xiyaowong
- Archived: true
- Created: 2021-08-07T12:57:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-04T11:06:09.000Z (over 3 years ago)
- Last Synced: 2024-08-01T19:57:47.923Z (7 months ago)
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# coc-lightbulb
VSCode 💡 for coc.nvim. Inspired by [nvim-lightbulb](https://github.com/kosayoda/nvim-lightbulb)

**You can use extension [coc-lightbulb](https://github.com/xiyaowong/coc-lightbulb-) instead of this plugin**
## Requirements
neovim 0.5+
## Introduction
The plugin shows a lightbulb in the sign column whenever a textDocument/codeAction is available at the current cursor position.
## Configuration
All available options by default
```lua
require('coc-lightbulb').setup {
-- enable this plugin
enable = true,
-- Disable this plugin in these filetypes. As some servers provide code actions everywhere...
disabled_filetyps = {},
sign = {
enabled = true,
-- Priority of the sign
priority = 10,
},
virtual_text = {
enabled = false,
-- text to show
text = '💡',
},
status_text = {
enabled = false,
-- text to show
text = '💡',
},
float = { -- Tips: you can click the float window to run CocAction
-- The diagnostic window may be broken
enabled = false,
text = '💡',
},
}
```- sign name: `LightBulbSign`
- virtual text highlight: `LightBulbVirtualText`
- statusline integration: `b:lightbulb_status_text` or `require'coc-lightbulb'.get_status()`
- float window highlight: `LightBulbFloatWin`