• Stars
    star
    342
  • Rank 119,746 (Top 3 %)
  • Language
    Lua
  • License
    MIT License
  • Created almost 4 years ago
  • Updated about 1 year ago

Reviews

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

Repository Details

Neovim plugin that shows type annotations as virtual text

virtual-types.nvim

This plugin shows type annotations for functions in virtual text using built-in LSP client.

I use it with ocaml-lsp, but it will probably work with other LSP servers that support textDocument/codeLens request.

Screenshot

screenshot

Prerequisites

Installation

Install with plugin manager:

Plug 'jubnzv/virtual-types.nvim'

And add the following line in your LSP configuration:

lua require'nvim_lsp'.ocamllsp.setup{on_attach=require'virtualtypes'.on_attach}