Skip to content

Commit

Permalink
fix(nvim-spectre): Make which-key entry color blue (#413)
Browse files Browse the repository at this point in the history
fix(nvim-spectre): Make which-key entry color blue and add icon
  • Loading branch information
bruunoromero authored Jul 12, 2023
1 parent 3dbdce3 commit f72c5cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/astrocommunity/project/nvim-spectre/init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
local prefix = "<leader>s"
local maps = { n = {}, x = {} }

local icon = vim.g.icons_enabled and "󰛔 " or ""
maps.n[prefix] = { desc = icon .. "Search / Replace" }
maps.x[prefix] = { desc = icon .. "Search / Replace" }

require("astronvim.utils").set_mappings(maps)

return {
{
"nvim-pack/nvim-spectre",
cmd = "Spectre",
keys = {
{ prefix, desc = "Search / Replace", mode = { "n", "x" } },
{ prefix .. "s", function() require("spectre").toggle() end, desc = "Toggle Spectre" },
{
prefix .. "w",
Expand Down

0 comments on commit f72c5cc

Please sign in to comment.