Skip to content

Commit

Permalink
fix: move bc to appropriate place
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Dec 8, 2023
1 parent f923efa commit 16331da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/catppuccin/groups/integrations/dap_ui.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
local M = {}

function M.get()
if O.integrations.dap.enabled and O.integrations.dap.enable_ui ~= nil then
O.integrations.dap_ui = O.integrations.dap.enable_ui
end

return {
DapUIScope = { fg = C.sky },
DapUIType = { fg = C.mauve },
Expand Down
7 changes: 7 additions & 0 deletions lua/catppuccin/lib/mapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ function M.apply(flavour)
theme.editor = require("catppuccin.groups.editor").get()
local final_integrations = {}

-- https://github.com/catppuccin/nvim/pull/624
if type(O.integrations.dap) == "table" and O.integrations.dap.enable_ui ~= nil then
O.integrations.dap_ui = O.integrations.dap.enable_ui
O.integrations.dap.enable_ui = nil
end

for integration in pairs(O.integrations) do
local cot = false
if type(O.integrations[integration]) == "table" then
Expand All @@ -46,6 +52,7 @@ function M.apply(flavour)
)
end
end

theme.integrations = final_integrations -- plugins
theme.terminal = require("catppuccin.groups.terminal").get() -- terminal colors
local user_highlights = O.highlight_overrides
Expand Down

0 comments on commit 16331da

Please sign in to comment.