mirror of
https://github.com/tiyn/action-hints.nvim.git
synced 2025-11-13 13:59:45 +01:00
51 lines
982 B
Markdown
51 lines
982 B
Markdown
# :zap: Action Hints
|
|
|
|

|
|
|
|
A Neovim plugin to show information about the word under the cursor in the statusline or as virtual text.
|
|
|
|
Available hints:
|
|
|
|
- `⊛` - go-to-definition (`gd`) is available
|
|
- `↱` reference list (`gr`) available / number of references
|
|
|
|
## Installation
|
|
|
|
```lua
|
|
{
|
|
"roobert/action-hints.nvim",
|
|
config = function()
|
|
require("action-hints").setup()
|
|
end,
|
|
},
|
|
```
|
|
|
|
## Configuration
|
|
|
|
```lua
|
|
{
|
|
"roobert/action-hints.nvim",
|
|
config = function()
|
|
require("action-hints").setup({
|
|
template = {
|
|
definition = { text = " ⊛", color = "#add8e6" },
|
|
references = { text = " ↱%s", color = "#ff6666" },
|
|
},
|
|
use_virtual_text = true,
|
|
})
|
|
end,
|
|
},
|
|
```
|
|
|
|
## Usage
|
|
|
|
As a lualine component:
|
|
|
|
```lua
|
|
require("lualine").setup({
|
|
sections = {
|
|
lualine_x = { require("action-hints").statusline },
|
|
},
|
|
})
|
|
```
|