elixir-tools / elixir-tools.nvim

Neovim plugin for Elixir
MIT License
403 stars 30 forks source link

What's the Spec suggestion highlight group? #40

Closed igorgue closed 1 year ago

igorgue commented 1 year ago

From reading your code is not clear what suggestSpecs does, or if you have any control over the highlight group name of the spec, I'd like to know for theming purposes.

mhanberg commented 1 year ago

Spec Suggestions is an ElixirLS feature, which is implemented as a "code lens", which is an LSP concept. In neovim, code lenses are presented as virtual text.

So, this plugin actually doesn't do anything special to enable it other than take care of refreshing the code lenses when files change.

I'm not a computer right now and I don't remember the highlight groups off the top of my head, but you should be able to find them in the built in neovim documentation.

igorgue commented 1 year ago

@mhanberg Got it, it's at:

:h *lsp-highlight-codelens

And looks like it's LspCodeLens I'll test it in a little bit, thank you

igorgue commented 1 year ago

It was that, so I'm closing it, thank you so much!