Skip to content

Shows the virtual_lines on the current line, but only after the cursor has settled on a single line for a specified amount of time.

Notifications You must be signed in to change notification settings

coreyb-git/virtlines-delay.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Virtual_Lines Delay

Intended for use with vim.diagnostic.config({virtual_lines={current_line=true}}), and respects formatting being performed by other plugins.

With this plugin NeoVim will wait until you settle on a line before it shows its virtual_lines diagnostics. Without the delay each virtual_line instantly pops-in as you navigate, moving all text below it further downwards. This constant dynamic shifting of text can be disorienting.

By adding a delay before revealing the virtual_lines this disorientation is eliminated - Nothing pops-in until you have stopped vertical navigation.

Install

Using Lazy plugin manager:

return {
  "coreyb-git/virtlines-delay.nvim",
  lazy=false,
  opts = {
    delay = 200
  },
}

Else call:

require('virtlines-delay').setup()

About

Shows the virtual_lines on the current line, but only after the cursor has settled on a single line for a specified amount of time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages