Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
352419478f
|
||
|
|
9f40981d5d
|
||
|
|
4e55d592a9
|
No files matched your search
+2
-2
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Initial release
|
||||
- Lightbulb sign when LSP code actions are available on current line
|
||||
- Async LSP requests with generation-counter stale-response handling
|
||||
- Configurable sign text, highlight group, and extmark priority
|
||||
- Configurable sign text and highlight group
|
||||
- Zero-config auto-loading via `plugin/` directory
|
||||
|
||||
[0.1.0]: https://github.com/swaits/tiny-lightbulb.nvim/releases/tag/v0.1.0
|
||||
[0.1.0]: https://git.swaits.com/swaits/tiny-lightbulb.nvim/releases/tag/v0.1.0
|
||||
@@ -23,11 +23,23 @@ Zero config. ~40 lines of Lua.
|
||||
Add to your `vim.pack.add()` call:
|
||||
|
||||
```lua
|
||||
"https://github.com/swaits/tiny-lightbulb.nvim",
|
||||
"https://git.swaits.com/swaits/tiny-lightbulb.nvim",
|
||||
```
|
||||
|
||||
Done. The plugin auto-loads with sensible defaults.
|
||||
|
||||
## Recommended setup
|
||||
|
||||
To prevent the gutter from expanding and contracting as the lightbulb
|
||||
appears and disappears, reserve the sign column width up front:
|
||||
|
||||
```lua
|
||||
vim.o.signcolumn = "yes:2" -- room for a diagnostic + the lightbulb
|
||||
```
|
||||
|
||||
Without this, Neovim's default `auto` behavior will shift your text left
|
||||
and right as signs come and go.
|
||||
|
||||
## Configuration
|
||||
|
||||
All options are optional. Call `setup()` only if you want to customize:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
*tiny-lightbulb.txt* Show a sign when LSP code actions are available
|
||||
|
||||
Author: Stephen Waits <https://github.com/swaits>
|
||||
Author: Stephen Waits <https://git.swaits.com/swaits>
|
||||
License: MIT
|
||||
|
||||
==============================================================================
|
||||
@@ -29,7 +29,7 @@ configuration — just install and go.
|
||||
|
||||
Add to your |vim.pack.add()| call: >lua
|
||||
|
||||
"https://github.com/swaits/tiny-lightbulb.nvim",
|
||||
"https://git.swaits.com/swaits/tiny-lightbulb.nvim",
|
||||
<
|
||||
That's it. The plugin auto-loads with defaults. To customize, call setup: >lua
|
||||
|
||||
|
||||
Reference in new issue
Block a user