Neovim Plugins and Configuration Recipes | 2

Series to explore Neovim plugins and configuration recipes.

alpha2phi

--

Neovim Plugins and Configuration Recipes | 2

This article is part of the Neovim Plugins and Configuration Recipes series.

The Neovim configuration files are available in this repository.

Getting Started

In this article, we continue our journey to explore Neovim plugins and configuration recipes that can improve our development workflow.

· Plugins
wtf.nvim
pigeon
nvim-devdocs
· Configuration Recipes
Git Worktree
Telescope Picker for Changed Files
Managing Multiple Projects
Telescope with ToggleTerm
· References

Plugins

wtf.nvim

wtf.nvim provides faster and more efficient ways of working with the buffer line's diagnostic messages. From the diagnostic messages, we can

  • Use ChatGPT to provide explanations and solutions to fix the diagnostics
  • Search Google, Stack Overflow, Duck Duck Go, or GitHub

To install the plugin using lazy.nvim.

{
"piersolenski/wtf.nvim",
dependencies = {
"MunifTanjim/nui.nvim",
},
opts = {},
--stylua: ignore
keys = {
{ "<leader>sD", function() require("wtf").ai() end, desc = "Search Diagnostic with AI" },
{ "<leader>sd", function() require("wtf").search() end, desc = "Search Diagnostic with Google" },
},
}

We can use ChatGPT to explain and provide a solution for the diagnostic message, as shown below.

Use ChatGPT for the Diagnostic Message

We can search the web using the diagnostic message, as shown below.

Search the Web for the Diagnostic Message

pigeon

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.