• Stars
    star
    257
  • Rank 157,985 (Top 4 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 1 year ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Neovim plugin for displaying references and difinition infos upon functions like JB's IDEA.

lsp-lens.nvim

Neovim plugin for displaying reference and definition info upon functions like JB's IDEA.

image

Installation

Prerequisite

neovim >= 0.8

lsp server correctly setup

Lazy

require("lazy").setup({
  'VidocqH/lsp-lens.nvim'
})

Usage

require'lsp-lens'.setup({})

Configs

Below is the default config

require'lsp-lens'.setup({
  enable = true,
  include_declaration = false,      -- Reference include declaration
  sections = {                      -- Enable / Disable specific request
    definition = false,
    references = true,
    implements = true,
  },
  ignore_filetype = {
    "prisma",
  },
})

Commands

:LspLensOn
:LspLensOff
:LspLensToggle

Highlight

{
  LspLens = { link = "Comment" },
}

Known Bug

  • Due to a known issue with the neovim nvim_buf_set_extmark() api, the function and method defined on the first line of the code may cause the len to display at the -1 index line, which is not visible.

Thanks

lspsaga by glepnir