Neovim for Beginners — Status Line

Customize the status line to show useful information, with and without plugins.

alpha2phi

--

Neovim for Beginners — Status Line

Let’s learn how to customize the status line with and without any plugins.

We are going to

  • Configure the status line without using any plugins (:h statusline).
  • Use the Lualine plugin to configure the status line in Lua.
  • Integrate nvim-gps with Lualine to see the current scope in the status line.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Configure Status Line without Plugin

The Basics

By default Neovim status line is empty (:h statusline). The laststatusoption determines when the last window will have a status line (:h status-line).

  • 0: No status line.
  • 1: Display the status line if there is more than one window.
  • 2: Always display a status line.
  • 3: have a global statusline at the bottom instead of one for each window (available since release 0.7)

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.