Skip to content

Commit

Permalink
feat(refactoring-nvim): add heading binding (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuuurino authored Apr 11, 2024
1 parent a69a79e commit d87f6a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/astrocommunity/editing-support/refactoring-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ return {
opts = {
mappings = {
n = {
["<Leader>r"] = { name = "󰣪 Refactor" },
["<Leader>rb"] = {
function() require("refactoring").refactor "Extract Block" end,
desc = "Extract Block",
Expand All @@ -35,6 +36,7 @@ return {
},
},
x = {
["<Leader>r"] = { name = "󰣪 Refactor" },
["<Leader>re"] = {
function() require("refactoring").refactor "Extract Function" end,
desc = "Extract Function",
Expand All @@ -53,6 +55,7 @@ return {
},
},
v = {
["<Leader>r"] = { name = "󰣪 Refactor" },
["<Leader>re"] = {
function() require("refactoring").refactor "Extract Function" end,
desc = "Extract Function",
Expand Down

0 comments on commit d87f6a1

Please sign in to comment.