Neovim for Beginners — LSP (Part 2)

Enhance our coding experience using LSP.

alpha2phi
7 min readFeb 6, 2022
Neovim for Beginners — LSP

From the previous article, we now have a very basic LSP setup. Let’s continue to enhance the configuration.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Table of Content

· LSP Basics
LSP Methods
LSP Handlers
· Configure LSP Handlers
Default Behaviors
Configure LSP Handlers
· Configure Lua for Neovim
· Status Line
· Document Highlight
· Signature Help without Plugin
· nvim-cmp
Signature Help
Icons for Completion Menu
· LSP Plugins
· References

LSP Basics

Neovim acts as a client to the LSP servers and sends requests and receives responses or notifications from the servers.

The LSP request or response handlers are implemented as Lua functions (:h lsp-handler).

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.