Skip to content

Commit

Permalink
fix: Make which-key entry color blue, as it should be (#424)
Browse files Browse the repository at this point in the history
* fix(neogen): Make which-key entry color blue, as it should be

* fix(neogit): Make which-key entry color blue, as it should be

* fix(mini-surround): Make which-key entry color blue, as it should be
  • Loading branch information
RayJameson authored Jul 13, 2023
1 parent 6565de5 commit aea716a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
5 changes: 4 additions & 1 deletion lua/astrocommunity/editing-support/neogen/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
local prefix = "<leader>a"
local maps = { n = {} }
local icon = vim.g.icons_enabled and "󰷉 " or ""
maps.n[prefix] = { desc = icon .. "Annotation" }
require("astronvim.utils").set_mappings(maps)
return {
"danymat/neogen",
cmd = "Neogen",
Expand All @@ -11,7 +15,6 @@ return {
},
},
keys = {
{ prefix, desc = "Annotation" },
{ prefix .. "<cr>", function() require("neogen").generate { type = "current" } end, desc = "Current" },
{ prefix .. "c", function() require("neogen").generate { type = "class" } end, desc = "Class" },
{ prefix .. "f", function() require("neogen").generate { type = "func" } end, desc = "Function" },
Expand Down
14 changes: 9 additions & 5 deletions lua/astrocommunity/git/neogit/init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
local prefix = "<leader>g"
local maps = { n = {} }
local icon = vim.g.icons_enabled and "󰰔 " or ""
maps.n[prefix] = { desc = icon .. "Neogit" }
require("astronvim.utils").set_mappings(maps)
return {
{
"NeogitOrg/neogit",
Expand All @@ -6,11 +11,10 @@ return {
},
event = "User AstroGitFile",
keys = {
{ "<leader>gn", desc = "Neogit", mode = { "n" } },
{ "<leader>gnt", "<cmd>Neogit<CR>", desc = "Open Neogit Tab Page" },
{ "<leader>gnc", "<cmd>Neogit commit<CR>", desc = "Open Neogit Commit Page" },
{ "<leader>gnd", ":Neogit cwd=", desc = "Open Neogit Override CWD" },
{ "<leader>gnk", ":Neogit kind=", desc = "Open Neogit Override Kind" },
{ prefix .. "nt", "<cmd>Neogit<CR>", desc = "Open Neogit Tab Page" },
{ prefix .. "nc", "<cmd>Neogit commit<CR>", desc = "Open Neogit Commit Page" },
{ prefix .. "nd", ":Neogit cwd=", desc = "Open Neogit Override CWD" },
{ prefix .. "nk", ":Neogit kind=", desc = "Open Neogit Override Kind" },
},
},
}
7 changes: 4 additions & 3 deletions lua/astrocommunity/motion/mini-surround/init.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
local prefix = "gz"
local maps = { n = {} }
local icon = vim.g.icons_enabled and "󰑤 " or ""
maps.n[prefix] = { desc = icon .. "Surround" }
require("astronvim.utils").set_mappings(maps)
return {
{ "machakann/vim-sandwich", enabled = false },
{
"echasnovski/mini.surround",
keys = {
{ prefix, desc = "Surround" },
},
opts = {
mappings = {
add = prefix .. "a", -- Add surrounding in Normal and Visual modes
Expand Down

0 comments on commit aea716a

Please sign in to comment.