summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/groups
diff options
context:
space:
mode:
authorAlex <49870662+ysomad@users.noreply.github.com>2023-11-21 00:23:49 +0400
committerGitHub <noreply@github.com>2023-11-20 21:23:49 +0100
commitecf3e186d336e03b5ce7ed4e8f7f72ad983947df (patch)
tree89f79452b24c11f0084cd1108a67897f6bb19ff3 /lua/no-clown-fiesta/groups
parentcba991db027d696d99b15e6d3ea6f29f59ad2963 (diff)
Add nvim-dap-ui highlight groups (#31)
* Add dap ui support * Add dap ui support * add support for nvim-dap-ui * fix: bold style * cleanup comments * rename dap to dapui
Diffstat (limited to 'lua/no-clown-fiesta/groups')
-rw-r--r--lua/no-clown-fiesta/groups/dapui.lua35
-rw-r--r--lua/no-clown-fiesta/groups/init.lua1
2 files changed, 36 insertions, 0 deletions
diff --git a/lua/no-clown-fiesta/groups/dapui.lua b/lua/no-clown-fiesta/groups/dapui.lua
new file mode 100644
index 0000000..188e97d
--- /dev/null
+++ b/lua/no-clown-fiesta/groups/dapui.lua
@@ -0,0 +1,35 @@
+local M = {}
+
+function M.highlight(palette, opts)
+ return {
+ DapUIScope = { fg = palette.cyan },
+ DapUIType = { fg = palette.magenta },
+ DapUIModifiedValue = { fg = palette.cyan, bold = true },
+ DapUIDecoration = { link = 'DapUIScope' },
+ DapUIThread = { fg = palette.green, bold = true },
+ DapUIStoppedThread = { link = 'DapUIScope' },
+ DapUISource = { link = 'DapUIType' },
+ DapUILineNumber = { link = 'DapUIScope' },
+ DapUIFloatBorder = { link = 'DapUIScope' },
+ DapUIWatchesEmpty = { fg = palette.red },
+ DapUIWatchesValue = { fg = palette.green },
+ DapUIWatchesError = { link = 'DapUIWatchesEmpty' },
+ DapUIBreakpointsPath = { link = 'DapUIScope' },
+ DapUIBreakpointsInfo = { link = 'DapUIWatchesValue' },
+ DapUIBreakpointsCurrentLine = { link = 'DapUIThread' },
+ DapUIBreakpointsDisabledLine = { fg = palette.fg },
+ 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
+
+
diff --git a/lua/no-clown-fiesta/groups/init.lua b/lua/no-clown-fiesta/groups/init.lua
index c7b9971..cba9aa8 100644
--- a/lua/no-clown-fiesta/groups/init.lua
+++ b/lua/no-clown-fiesta/groups/init.lua
@@ -18,4 +18,5 @@ return {
require "no-clown-fiesta.groups.treesitter",
require "no-clown-fiesta.groups.whichkey",
require "no-clown-fiesta.groups.neotest",
+ require "no-clown-fiesta.groups.dapui",
}