Skip to content

Commit

Permalink
fix(trouble-nvim): Make which-key entry color blue, as it should be (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSast authored Jul 13, 2023
1 parent f72c5cc commit 6ae1fde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/astrocommunity/diagnostics/trouble-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
local prefix = "<leader>x"
local maps = { n = {} }
local icon = vim.g.icons_enabled and "󱍼 " or ""
maps.n[prefix] = { desc = icon .. "Trouble" }
require("astronvim.utils").set_mappings(maps)
return {
{
"folke/trouble.nvim",
cmd = { "TroubleToggle", "Trouble" },
keys = {
{ prefix, desc = "Trouble" },
{ prefix .. "X", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },
{ prefix .. "x", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
{ prefix .. "l", "<cmd>TroubleToggle loclist<cr>", desc = "Location List (Trouble)" },
Expand Down

0 comments on commit 6ae1fde

Please sign in to comment.