Sitemap

Member-only story

Neovim for Beginners —Common Language Servers

Configure common language servers for daily coding.

--

Press enter or click to view image in full size
Neovim for Beginners — Common Language Servers

We configured the jsonls language server and the plugin for the JSON Schema Store. This article will walk through the configuration of other language servers for commonly used tools and utilities.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Docker

Most developers should be familiar with Docker and how to create a Dockerfile. Let’s install the Docker language server to help us write Dockerfile.

In the lua/config/lsp/init.lua file, add the line for the dockerls language server.

local servers = {
...
dockerls = {},
...
}

Once we restart Neovim, the nvim-lsp-installer plugin will install the Docker language server automatically. The automated installation is configured in the lua/config/lsp/installer.lua file.

Press enter or click to view image in full size
Docker Language Server Installation

Alternatively, we can use the :LspInstallInfo command to manually install the language server.

--

--