Skip to content

Commit

Permalink
feat: Support dap-ui plugin support
Browse files Browse the repository at this point in the history
Fixed #207
  • Loading branch information
ful1e5 committed May 8, 2023
1 parent 9ddfac1 commit 93d7354
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support [Fidget](https://github.com/j-hui/fidget.nvim) plugin highlights #202
- Support [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin highlights #221
- Support [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) plugin highlights #221
- Support [dap-ui](https://github.com/rcarriga/nvim-dap-ui) plugin highlights #207

### Issues Fix

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ vim.cmd('colorscheme github_dark')
[ale](https://github.com/dense-analysis/ale),
[circles.nvim](https://github.com/projekt0n/circles.nvim),
[coc.nvim](https://github.com/neoclide/coc.nvim),
[dap-ui](https://github.com/rcarriga/nvim-dap-ui),
[dashboard-nvim](https://github.com/glepnir/dashboard-nvim),
[diffview.nvim](https://github.com/sindrets/diffview.nvim),
[fidget.nvim](https://github.com/j-hui/fidget.nvim),
Expand Down
1 change: 1 addition & 0 deletions lua/github-theme/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ M.options = collect.deep_copy(defaults)
M.module_names = {
'cmp',
'coc',
'dapui',
'dashboard',
'diagnostic',
'fidget',
Expand Down
38 changes: 38 additions & 0 deletions lua/github-theme/group/modules/dapui.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
-- https://github.com/rcarriga/nvim-dap-ui

local M = {}

function M.get(spec, config, opts)
local c = spec.palette

-- stylua: ignore
return {
DapUIScope = { fg = c.cyan.base },
DapUIType = { fg = c.magenta.base },
DapUIModifiedValue = { fg = c.cyan.base, style = 'bold'},
DapUIDecoration = { link = 'DapUIScope' },
DapUIThread = { fg = c.green.base, style = 'bold'},
DapUIStoppedThread = { link = 'DapUIScope' },
DapUISource = { link = 'DapUIType' },
DapUILineNumber = { link = 'DapUIScope' },
DapUIFloatBorder = { link = 'DapUIScope' },
DapUIWatchesEmpty = { fg = c.red.base },
DapUIWatchesValue = { fg = c.green.base },
DapUIWatchesError = { link = 'DapUIWatchesEmpty' },
DapUIBreakpointsPath = { link = 'DapUIScope' },
DapUIBreakpointsInfo = { link = 'DapUIWatchesValue' },
DapUIBreakpointsCurrentLine = { link = 'DapUIThread' },
DapUIBreakpointsDisabledLine = { fg = spec.fg0 },
DapUIStepOver = { link = 'DapUIScope' },
DapUIStepInto = { link = 'DapUIScope' },
DapUIStepBack = { link = 'DapUIScope' },
DapUIStepOut = { link = 'DapUIScope' },
DapUIStop = { link = 'DapUIWatchesEmpty' },
DapUIPlayPause = { link = 'DapUIWatchesValue' },
DapUIRestart = { link = 'DapUIWatchesValue' },
DapUIUnavailable = { link = 'DapUIBreakpointsDisabledLine' },
DapUIWinSelect = { link = 'DapUIModifiedValue' },
}
end

return M

0 comments on commit 93d7354

Please sign in to comment.