Skip to content

vzytoi/virtual.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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,
      }
  }  
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages