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.
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
lua/utils/term.lua file, add the functions to integrate with
lua/config/whichkey.lua file, we add the key mapping.
Now we can see the code statistics for the current application from within Neovim.
System Info using bottom
bottom is a customizable cross-platform graphical process/system monitor for the terminal.
Using the same approach, we can display the system information from within Neovim.