mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 19:04:36 +02:00
Merge 222c5e1ec1
into 25abbf546d
This commit is contained in:
commit
b7b7e40aee
1 changed files with 22 additions and 13 deletions
|
@ -30,34 +30,39 @@ return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>r", "", desc = "+refactor", mode = { "n", "v" } },
|
{ "<leader>r", "", desc = "+refactor", mode = { "n", "x" } },
|
||||||
{
|
{
|
||||||
"<leader>rs",
|
"<leader>rs",
|
||||||
pick,
|
pick,
|
||||||
mode = "v",
|
mode = { "n", "x" },
|
||||||
desc = "Refactor",
|
desc = "Refactor",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>ri",
|
"<leader>ri",
|
||||||
function()
|
function()
|
||||||
require("refactoring").refactor("Inline Variable")
|
return require("refactoring").refactor("Inline Variable")
|
||||||
end,
|
end,
|
||||||
mode = { "n", "v" },
|
mode = { "n", "x" },
|
||||||
desc = "Inline Variable",
|
desc = "Inline Variable",
|
||||||
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>rb",
|
"<leader>rb",
|
||||||
function()
|
function()
|
||||||
require("refactoring").refactor("Extract Block")
|
return require("refactoring").refactor("Extract Block")
|
||||||
end,
|
end,
|
||||||
|
mode = { "n", "x" },
|
||||||
desc = "Extract Block",
|
desc = "Extract Block",
|
||||||
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>rf",
|
"<leader>rf",
|
||||||
function()
|
function()
|
||||||
require("refactoring").refactor("Extract Block To File")
|
return require("refactoring").refactor("Extract Block To File")
|
||||||
end,
|
end,
|
||||||
|
mode = { "n", "x" },
|
||||||
desc = "Extract Block To File",
|
desc = "Extract Block To File",
|
||||||
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>rP",
|
"<leader>rP",
|
||||||
|
@ -71,6 +76,7 @@ return {
|
||||||
function()
|
function()
|
||||||
require("refactoring").debug.print_var({ normal = true })
|
require("refactoring").debug.print_var({ normal = true })
|
||||||
end,
|
end,
|
||||||
|
mode = { "n", "x" },
|
||||||
desc = "Debug Print Variable",
|
desc = "Debug Print Variable",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -83,33 +89,36 @@ return {
|
||||||
{
|
{
|
||||||
"<leader>rf",
|
"<leader>rf",
|
||||||
function()
|
function()
|
||||||
require("refactoring").refactor("Extract Function")
|
return require("refactoring").refactor("Extract Function")
|
||||||
end,
|
end,
|
||||||
mode = "v",
|
mode = { "n", "x" },
|
||||||
desc = "Extract Function",
|
desc = "Extract Function",
|
||||||
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>rF",
|
"<leader>rF",
|
||||||
function()
|
function()
|
||||||
require("refactoring").refactor("Extract Function To File")
|
return require("refactoring").refactor("Extract Function To File")
|
||||||
end,
|
end,
|
||||||
mode = "v",
|
mode = { "n", "x" },
|
||||||
desc = "Extract Function To File",
|
desc = "Extract Function To File",
|
||||||
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>rx",
|
"<leader>rx",
|
||||||
function()
|
function()
|
||||||
require("refactoring").refactor("Extract Variable")
|
return require("refactoring").refactor("Extract Variable")
|
||||||
end,
|
end,
|
||||||
mode = "v",
|
mode = { "n", "x" },
|
||||||
desc = "Extract Variable",
|
desc = "Extract Variable",
|
||||||
|
expr = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>rp",
|
"<leader>rp",
|
||||||
function()
|
function()
|
||||||
require("refactoring").debug.print_var()
|
require("refactoring").debug.print_var()
|
||||||
end,
|
end,
|
||||||
mode = "v",
|
mode = { "n", "x" },
|
||||||
desc = "Debug Print Variable",
|
desc = "Debug Print Variable",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue