Skip to content

Commit

Permalink
fix(main): Swap out usage of name = * in mapping declaration with `…
Browse files Browse the repository at this point in the history
…desc = *` to conform with which-key v3 (#1107)
  • Loading branch information
Uzaaft authored Jul 13, 2024
1 parent 09b796f commit f3b598f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/astrocommunity/completion/codeium-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ return {
mappings = {
n = {
["<Leader>;"] = {
name = require("astroui").get_icon("Codeium", 1, true) .. "Codeium",
desc = require("astroui").get_icon("Codeium", 1, true) .. "Codeium",
},
["<Leader>;o"] = {
desc = "Open Chat",
Expand Down
6 changes: 3 additions & 3 deletions lua/astrocommunity/editing-support/refactoring-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return {
return require("astrocore").extend_tbl(opts, {
mappings = {
n = {
["<Leader>r"] = { name = get_icon("Refactoring", 1, true) .. "Refactor" },
["<Leader>r"] = { desc = get_icon("Refactoring", 1, true) .. "Refactor" },
["<Leader>rb"] = {
function() require("refactoring").refactor "Extract Block" end,
desc = "Extract Block",
Expand All @@ -39,7 +39,7 @@ return {
},
},
x = {
["<Leader>r"] = { name = get_icon("Refactoring", 1, true) .. "Refactor" },
["<Leader>r"] = { desc = get_icon("Refactoring", 1, true) .. "Refactor" },
["<Leader>re"] = {
function() require("refactoring").refactor "Extract Function" end,
desc = "Extract Function",
Expand All @@ -58,7 +58,7 @@ return {
},
},
v = {
["<Leader>r"] = { name = get_icon("Refactoring", 1, true) .. "Refactor" },
["<Leader>r"] = { desc = get_icon("Refactoring", 1, true) .. "Refactor" },
["<Leader>re"] = {
function() require("refactoring").refactor "Extract Function" end,
desc = "Extract Function",
Expand Down

0 comments on commit f3b598f

Please sign in to comment.