Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 810 Bytes

File metadata and controls

31 lines (22 loc) · 810 Bytes

virtual.nvim

If you're tired of having a lot of diagnoses appearing on your screen at the same time,
you've come to the right place.
Virtual.nvim allows you to display only the virtual text on your current line for the severities you want

Installation

To install, use your plugin manager, no need to call any setup function here.

use "vzytoi/virtual.nvim"

Setup

To set it up, simply call the grab function at the location shown below.
In this example, the virtual lines will always be displayed for errors
but virtual.nvim will take care of displaying errors of lower severity (hint, warning, info)

vim.diagnostic.config({
  virtual_text = {
      severity = require('virtual').grab {
          min = vim.diagnostic.severity.ERROR,
      }
  }  
})