mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(refactoring): removed duplicated keymapping, added "inline function" keymap
This commit is contained in:
parent
ec02325590
commit
397e1c3a2b
2 changed files with 10 additions and 8 deletions
1
NEWS.md
1
NEWS.md
|
|
@ -24,6 +24,7 @@ Going forward, **LazyVim** requires **Neovim** `>= 0.11.2`, and drops support fo
|
||||||
- `<leader>hQ` to show hunks as Quickfix (all files) [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
|
- `<leader>hQ` to show hunks as Quickfix (all files) [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
|
||||||
- `<leader>tb` to toggle current line blame [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
|
- `<leader>tb` to toggle current line blame [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
|
||||||
- `<leader>tw` to toggle word diff [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
|
- `<leader>tw` to toggle word diff [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
|
||||||
|
- `<leader>rI` to inline function [refactoring](https://github.com/ThePrimeagen/refactoring.nvim)
|
||||||
|
|
||||||
## 14.x
|
## 14.x
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,15 @@ return {
|
||||||
desc = "Inline Variable",
|
desc = "Inline Variable",
|
||||||
expr = true,
|
expr = true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<leader>rI",
|
||||||
|
function()
|
||||||
|
return require("refactoring").refactor("Inline Function")
|
||||||
|
end,
|
||||||
|
mode = { "n", "x" },
|
||||||
|
desc = "Inline Function",
|
||||||
|
expr = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"<leader>rb",
|
"<leader>rb",
|
||||||
function()
|
function()
|
||||||
|
|
@ -113,14 +122,6 @@ return {
|
||||||
desc = "Extract Variable",
|
desc = "Extract Variable",
|
||||||
expr = true,
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"<leader>rp",
|
|
||||||
function()
|
|
||||||
require("refactoring").debug.print_var()
|
|
||||||
end,
|
|
||||||
mode = { "n", "x" },
|
|
||||||
desc = "Debug Print Variable",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
prompt_func_return_type = {
|
prompt_func_return_type = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue