Neovim for Beginners — Code Annotation and Documentation

Generate code documentation, annotation, and comment.

alpha2phi
4 min readMay 8, 2022
Neovim for Beginners — Code Annotation and Documentation

From the previous articles, we have configured the snippet plugin and also learned how to write custom snippets using the Lua language. Another important aspect of better coding is code documentation, annotation, and comment.

In this article, we are going to configure plugins to help us document our code, and integrate them with the snippet and completion engines.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Getting Started

We will walk through the configuration of 2 plugins.

These plugins support the documentation standards for commonly used languages. For demonstration purposes, we are going to configure and test out Lua, Python, Javascript/TypeScript, and Rust.

Neogen

Installation

In the lua/plugins.lua file, add the lines to install the plugin.

use {
"danymat/neogen",
config = function()
require("config.neogen").setup()
end,
cmd =…

--

--

alpha2phi
alpha2phi

Written by alpha2phi

Software engineer, Data Science and ML practitioner.

No responses yet