Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roobert/action-hints.nvim
⚡ A Neovim plugin that displays available actions like 'Go to Definition' and 'Go to Reference(s)' for the highlighted word, presented in the statusline or inline as virtual text.
https://github.com/roobert/action-hints.nvim
Last synced: about 1 month ago
JSON representation
⚡ A Neovim plugin that displays available actions like 'Go to Definition' and 'Go to Reference(s)' for the highlighted word, presented in the statusline or inline as virtual text.
- Host: GitHub
- URL: https://github.com/roobert/action-hints.nvim
- Owner: roobert
- Created: 2023-02-07T23:15:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T10:11:07.000Z (9 months ago)
- Last Synced: 2024-01-23T07:40:08.704Z (4 months ago)
- Language: Lua
- Homepage:
- Size: 23.4 KB
- Stars: 48
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-neovim - roobert/action-hints.nvim - Show information about the word under the cursor in the statusline or as virtual text. (LSP / (requires Neovim 0.5))
- awesome-stars - roobert/action-hints.nvim - ⚡ A Neovim plugin that displays available actions like 'Go to Definition' and 'Go to Reference(s)' for the highlighted word, presented in the statusline or inline as virtual text. (Lua)
- awesome-neovim - roobert/action-hints.nvim - Show information about the word under the cursor in the statusline or as virtual text. (LSP / (requires Neovim 0.5))
- awesome-neovim - roobert/action-hints.nvim - Show information about the word under the cursor in the statusline or as virtual text. (LSP / (requires Neovim 0.5))
README
# :zap: Action Hints
![action-hints Screenshot](https://github.com/roobert/action-hints.nvim/assets/226654/41d2e228-0991-41bc-ac0e-bc20aa5ca54a)
A Neovim plugin that displays available actions like 'Go to Definition' and 'Go to Reference(s)' for the highlighted word, presented in the statusline or inline 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 },
},
})
```