Files
tiny-lightbulb.nvim/doc/tiny-lightbulb.txt
T
swaits 9f40981d5d
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s
chore: repoint remaining links at git.swaits.com
Rewrites lingering github.com / *.sr.ht references to this Gitea instance,
translating GitHub and Sourcehut URL shapes to Gitea's (/blob/<ref>/ and
sr.ht /tree/<ref>/item/ -> /src/branch/<ref>/, /tree/<tag> -> /src/tag/<tag>,
/actions/workflows/X -> /actions?workflow=X, /edit/ -> /_edit/).

Left pointing at the old hosts on purpose: pull-request links (PRs were not
migrated), forks that were never migrated, and GitHub-only surfaces Gitea
lacks. OpenPGP identity proofs are untouched by design.
2026-08-31 18:32:30 -06:00

66 lines
2.5 KiB
Plaintext

*tiny-lightbulb.txt* Show a sign when LSP code actions are available
Author: Stephen Waits <https://github.com/swaits>
License: MIT
==============================================================================
CONTENTS *tiny-lightbulb-contents*
1. Introduction ............................ |tiny-lightbulb-introduction|
2. Requirements ............................ |tiny-lightbulb-requirements|
3. Installation ............................ |tiny-lightbulb-installation|
4. Configuration ........................... |tiny-lightbulb-configuration|
==============================================================================
1. INTRODUCTION *tiny-lightbulb-introduction*
tiny-lightbulb.nvim displays a sign in the sign column when LSP code actions
are available for the current line. Works out of the box with zero
configuration — just install and go.
==============================================================================
2. REQUIREMENTS *tiny-lightbulb-requirements*
- Neovim >= 0.12
- At least one LSP server that supports code actions
==============================================================================
3. INSTALLATION *tiny-lightbulb-installation*
Add to your |vim.pack.add()| call: >lua
"https://git.swaits.com/swaits/tiny-lightbulb.nvim",
<
That's it. The plugin auto-loads with defaults. To customize, call setup: >lua
require("tiny-lightbulb").setup({
sign = "💡",
hl = "DiagnosticWarn",
})
<
==============================================================================
4. CONFIGURATION *tiny-lightbulb-configuration*
*tiny-lightbulb.setup()*
setup({opts})
Optional. The plugin works with defaults if you never call this.
Calling setup reconfigures the plugin with the given options.
All options shown with defaults: >lua
require("tiny-lightbulb").setup({
sign = "💡", -- sign column text
hl = "DiagnosticWarn", -- highlight group for the sign
})
<
Parameters: ~
{opts} (table|nil) Configuration table
Fields: ~
{sign} (string) Text shown in the sign column. Default: "💡"
{hl} (string) Highlight group for the sign. Default: "DiagnosticWarn"
==============================================================================
vim:tw=78:ts=8:ft=help:norl: