Neovim for Beginners — Window Bar using lualine.nvim
In an earlier article, we use the nvim-navic
plugin, and the window bar to show the current code context.
We already use the lualine.nvim
plugin in our existing configuration. In this article, we will explore using this plugin to configure the window bar.
This article is part of the Neovim for Beginners series.
The Neovim configuration files are available in this repository.
Configuration — lualine.nvim
In the config/lualine.lua
file, we add the lines to configure the window bar.
- We disable the window bar for certain file types (line 5 — line 21).
- Using
lualine.nvim
, we can configure the window bar for the active and inactive windows (line 24 — line 39). - For the active window, we configure the window bar to display diagnostics information (line 25). This is an existing component…