Skip to content

Commit

Permalink
fix(neogit): Make which-key entry color blue, as it should be
Browse files Browse the repository at this point in the history
  • Loading branch information
RayJameson committed Jul 13, 2023
1 parent 33874c1 commit 68d1021
Showing 1 changed file with 9 additions and 5 deletions.
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", mode = { "n" } }
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" },
},
},
}

0 comments on commit 68d1021

Please sign in to comment.