2023-08-13 14:12:06 +01:00
2023-08-13 14:12:06 +01:00

Action Hints

action-hints screenshot

A Neovim plugin to show information about the word under the cursor.

Available hints:

  • go-to-definition (gd) is available
  • reference list (gr) available / number of references

Installation

Lazy

{
  "roobert/action-hints.nvim",
  config = function()
    require("action-hints").setup()
  end,
},

Packer

use({
  "roobert/action-hints.nvim",
  config = function()
    require("action-hints").setup()
  end,
})

Configuration

{
  "roobert/action-hints.nvim",
  config = function()
    require("action-hints").setup({
      template = {
        { " ⊛", "ActionHintsDefinition" },
        { " ↱%s", "ActionHintsReferences" },
      },
      use_virtual_text = true,
      definition_color = "#add8e6",
      reference_color = "#ff6666",
    })
  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 52 KiB
Languages
Lua 100%