Member-only story

Five ways to display LSP diagnostics in Neovim

Tom Deneire
7 min readOct 29, 2024
Photo by Goran Ivos on Unsplash

Language Server Protocol

One of the things I love about Neovim is how it allows you to customize just about anything. A good example of this is the way the editor interacts with data coming from various language servers.

In case you didn’t know, Microsoft’s Language Server Protocol (LSP) is a standard that allows applications like editors to communicate with programming language-specific tools, enabling features like code completion, syntax highlighting, and error detection without the editor needing to understand each programming language’s specific implementation:

In many editors and IDEs, the way LSP information is displayed — like syntax errors and warnings — is customizable, but only to a degree. With Neovim, which by the way has built-in LSP support, you can do much more.

LSP diagnostics

Personally, I find LSP data, especially the copious info, hint, warning and error diagnostics that good LSPs provide, extremely useful on the one hand, but also quite verbose and…

Tom Deneire
Tom Deneire

Written by Tom Deneire

Software engineer, technical writer, IT burnout coach @ https://tomdeneire.be/confident_coding

No responses yet

What are your thoughts?