Neovim for Beginners — LSP Inlay Hints

Configure LSP inlay hints.

alpha2phi

--

Neovim for Beginners — LSP Inlay Hints

For certain programming languages, inlay hints make it a lot easier for us to code. In this short article, let’s configure LSP inlay hints for those languages that support this feature.

This article is part of the Neovim for Beginners series.

The Neovim configuration files are available in this repository.

Configuration

We are going to use the inlay-hints.nvim plugin. In the lua/plugins.lua file, we add the lines to install this plugin using packer.nvim.

Language Server Configuration

In the lua/config/lsp/init.lua file, we configure the settings for the sumneko_lua, gopls, and tsserver language servers.

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.