Modern Neovim — PDE (Part 2)

Configure Neovim with AI-assisted coding and note-taking.

alpha2phi
6 min readFeb 25

--

Modern Neovim — PDE (Part 2)

With the integration of Lua as the first-class language within Neovim, we can customize Neovim in any way we prefer. In this article, let’s continue to explore and configure Neovim as our personal development environment (PDE).

This article is part of the Modern Neovim series.

The Neovim configuration files are available in this repository.

Getting Started

This article is the second part of the series to configure a PDE with Neovim. Check out the related articles for more tips and tricks.

AI-assisted Coding

For AI-assisted coding, we can use codeium which is a free, ultrafast Copilot alternative for Vim and Neovim.

We configure codeium in the lua/plugins/extras/pde/codeium.lua file.

We disable the default mapping (line 7) and define our key mappings to trigger the code suggestion and completion (line 8 — line 12).

Once installed, we need to run the :Codeium Auth command to configure an API key to use the service.

Now we can have an AI coding assistant for pair programming.

AI-assisted Coding

We can also cycle through the different suggestions provided to us.

Code Suggestions

For other tips and tricks related to AI-assisted coding, check out these articles!

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.