mirror of
https://github.com/tiyn/action-hints.nvim.git
synced 2026-05-01 13:21:35 +02:00
ab10fef255dd4bc933c92d8f9969828f2f856e71
⚡ Action Hints
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
{
"roobert/action-hints.nvim",
config = function()
require("action-hints").setup()
end,
},
Configuration
{
"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:
require("lualine").setup({
sections = {
lualine_x = { require("action-hints").statusline },
},
})
Description
⚡ 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.
Readme
115 KiB
Languages
Lua
100%