Skip to content

Live render workspace diagnostics in quickfix with current buf errors on top, buffer diagnostics in loclist

Notifications You must be signed in to change notification settings

onsails/diaglist.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 

Repository files navigation

Live-updating Neovim LSP diagnostics in quickfix and loclist

demo

Features

  • workspace diagnostics of all buffers in quickfix
    • prioritize current buf diagnostics
    • live diagnostics update
    • no conflicts with other commands using quickfix
    • optionally show only current buffer's clients diagnostics
    • debounce
  • current buffer diagnostics in loclist
    • live diagnostics update
    • no conflicts with other commands using loclist
    • debounce

Setup

lua require("diaglist").init({
    -- optional settings
    -- below are defaults
    debug = false, 

    -- increase for noisy servers
    debounce_ms = 150,
})

Init sets diag update on LspDiagnosticsChanged, WinEnter, BufEnter for live diagnostics update and QuickFixCmdPre to avoid conflicts with other commands using quickfix.

Mappings

There are no default mappings. Here is an example:

nmap <space>dw <cmd>lua require('diaglist').open_all_diagnostics()<cr>
nmap <space>d0 <cmd>lua require('diaglist').open_buffer_diagnostics()<cr>

About

Live render workspace diagnostics in quickfix with current buf errors on top, buffer diagnostics in loclist

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages