Neovim for Beginners — 3rd Party Tools

Integrate 3rd party utilities into Neovim.

alpha2phi
5 min readAug 16, 2022
Neovim for Beginners — 3rd Party Tools

We developed a cheat sheet and coding assistant in an earlier article. In this article, let’s extend it to integrate other tools that might be useful for coding.

This article is part of the Neovim for Beginners series.

The Neovim configuration files are available in this repository.

Getting Started

We use Lua APIs to develop the cheatsheet and coding assistant by spawning a terminal to display the cheatsheet results. Since we already configured toggleterm.nvim, we are going to use it to integrate with other external tools.

Let’s go through several utilities. Most of them are developed in Rust.

Code Statistics using Tokei

Tokei is a program that displays statistics about your code. Tokei will show the number of files, total lines within those files, and code, comments, and blanks grouped by language

In the lua/utils/term.lua file, add the functions to integrate with Tokei.

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.