Neovim Plugins for a Better Integrated Experience — Part 3
Let’s check out plugins to have an IDE-like coding experience in Neovim.
This article can be read independently from the other related articles.
- Vim/Neovim Plugins for A Better Integrated Experience
- Neovim for a Better Integrated Experience without Plugins
Better Refactoring
refactoring.nvim uses nvim-treesitter to provide basic refactoring features previously only available in an IDE.
Currently, it supports the following refactoring operations (as per the Refactoring book by Martin Fowler).
- 106: Extract Function
- 119: Extract Variable
- 123: Inline Variable
Besides, it also comes with debugging features to automate the insertion and cleanup of print statements.
To install it using packer.nvim
,
use {
"ThePrimeagen/refactoring.nvim",
event = "VimEnter",
config = function()
require("config.refactoring").setup()
end,
}
In the refactoring.lua
file, I configure it to show up using Telescope.