jubnzv/virtual-types.nvim

github github
lspneovim-0.5
stars 368
issues 2
subscribers 8
forks 4
CREATED

2020-08-11

UPDATED

2 years ago


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}