Skip to content

Commit

Permalink
fix(dap-ui): add colors for *NC hlgroups of UI controls
Browse files Browse the repository at this point in the history
`nvim-dap-ui` has highlight groups for all its buttons:
`DapUIPlayPause`, `DapUIStepOver`, etc. But it also has `*NC` versions
of those highlights. I assume NC stands for non-current or "no cursor".

`nvim-dap-ui` defaults to linking those to their non-`*NC` versions but
I assume it happens too early and Catppuccin does not pick that up. This
PR simply duplicates the highlight groups to include `*NC` versions.

See https://github.com/rcarriga/nvim-dap-ui/blob/ffa89839f97bad360e78428d5c740fdad9a0ff02/lua/dapui/config/highlights.lua#L75-L96
  • Loading branch information
fnune committed Oct 23, 2024
1 parent ea02cc8 commit 29e42eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/catppuccin/groups/integrations/dap_ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ function M.get()
DapUIBreakpointsDisabledLine = { fg = C.surface2 },

DapUIStepOver = { fg = C.blue },
DapUIStepOverNC = { link = "DapUIStepOver" },
DapUIStepInto = { fg = C.blue },
DapUIStepIntoNC = { link = "DapUIStepInto" },
DapUIStepBack = { fg = C.blue },
DapUIStepBackNC = { link = "DapUIStepBack" },
DapUIStepOut = { fg = C.blue },
DapUIStepOutNC = { link = "DapUIStepOut" },
DapUIStop = { fg = C.red },
DapUIStopNC = { link = "DapUIStop" },
DapUIPlayPause = { fg = C.green },
DapUIPlayPauseNC = { link = "DapUIPlayPause" },
DapUIRestart = { fg = C.green },
DapUIRestartNC = { link = "DapUIRestart" },
DapUIUnavailable = { fg = C.surface1 },
DapUIUnavailableNC = { link = "DapUIUnavailable" },

DapUIWinSelect = { fg = C.peach },
}
Expand Down

0 comments on commit 29e42eb

Please sign in to comment.