jubnzv/virtual-types.nvim

github github
neovim-0.5 plugin
star 71
stars
alert-circle 1
open issues
users 4
subscribers
git-branch 1
forks
CREATED

2020-08-11

UPDATED

6 days ago

packer

require('packer').startup(function()
  use 'jubnzv/virtual-types.nvim'
end)

paq

require "paq" { 
  'jubnzv/virtual-types.nvim'
}

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}