Skip to content

⚡ 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.

Notifications You must be signed in to change notification settings

lgh597/action-hints.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

⚡ Action Hints

action-hints Screenshot

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.

Forked from ⚡ Action Hints

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 = "#ffade6"},
      },
      use_virtual_text = true,
    })
  end,
},

Usage

As a lualine component:

require("lualine").setup({
  sections = {
    lualine_x = { require("action-hints").statusline },
  },
})

Changes

  1. Do not use plugins in insert mode
  2. Use the command :ChangeActionHints to change the global plugin state(shortcut <leader>aa)

About

⚡ 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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%