VidocqH / lsp-lens.nvim

Neovim plugin for displaying references and difinition infos upon functions like JB's IDEA.
MIT License
252 stars 15 forks source link

Disable functionality for inline functions #35

Open mortymacs opened 5 months ago

mortymacs commented 5 months ago

For inline functions, it would be great to have options to configure it: image

Just a suggestion, maybe an extra arguments for sections (lsp or treesitter object mabye), something like:

require'lsp-lens'.setup({
  sections = {
    definition = function(count, functionObj)
        ...
    end,
    references = function(count, functionObj)
        ...
    end,
    implements = function(count, functionObj)
        ...
    end,
    git_authors = function(latest_author, count, functionObj)
        ...
    end,
  }
})