diff --git a/NEWS.md b/NEWS.md index c9bcf3e4..8a669a78 100644 --- a/NEWS.md +++ b/NEWS.md @@ -24,6 +24,7 @@ Going forward, **LazyVim** requires **Neovim** `>= 0.11.2`, and drops support fo - `hQ` to show hunks as Quickfix (all files) [gitsigns](https://github.com/lewis6991/gitsigns.nvim) - `tb` to toggle current line blame [gitsigns](https://github.com/lewis6991/gitsigns.nvim) - `tw` to toggle word diff [gitsigns](https://github.com/lewis6991/gitsigns.nvim) +- `rI` to inline function [refactoring](https://github.com/ThePrimeagen/refactoring.nvim) ## 14.x diff --git a/lua/lazyvim/plugins/extras/editor/refactoring.lua b/lua/lazyvim/plugins/extras/editor/refactoring.lua index 11ab3786..dedc9f11 100644 --- a/lua/lazyvim/plugins/extras/editor/refactoring.lua +++ b/lua/lazyvim/plugins/extras/editor/refactoring.lua @@ -46,6 +46,15 @@ return { desc = "Inline Variable", expr = true, }, + { + "rI", + function() + return require("refactoring").refactor("Inline Function") + end, + mode = { "n", "x" }, + desc = "Inline Function", + expr = true, + }, { "rb", function() @@ -113,14 +122,6 @@ return { desc = "Extract Variable", expr = true, }, - { - "rp", - function() - require("refactoring").debug.print_var() - end, - mode = { "n", "x" }, - desc = "Debug Print Variable", - }, }, opts = { prompt_func_return_type = {