[wip] nvim: make dap-ui more pretty
This commit is contained in:
parent
cc9a8d71f1
commit
208b18723b
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -99,6 +99,9 @@
|
|||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim
|
path = src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim
|
||||||
url = https://github.com/tjdevries/colorbuddy.nvim.git
|
url = https://github.com/tjdevries/colorbuddy.nvim.git
|
||||||
|
|
||||||
|
# debug adapter protocol
|
||||||
|
# debugging.lua
|
||||||
[submodule "nvim-dap"]
|
[submodule "nvim-dap"]
|
||||||
path = nvim-dap
|
path = nvim-dap
|
||||||
url = https://github.com/mfussenegger/nvim-dap.git
|
url = https://github.com/mfussenegger/nvim-dap.git
|
||||||
|
@ -63,22 +63,16 @@ dapui.setup({
|
|||||||
position = "left",
|
position = "left",
|
||||||
size = 40
|
size = 40
|
||||||
},
|
},
|
||||||
{
|
|
||||||
elements = {
|
|
||||||
{
|
|
||||||
id = "repl",
|
|
||||||
size = 1
|
|
||||||
},
|
|
||||||
},
|
|
||||||
position = "bottom",
|
|
||||||
size = 10
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
elements = {
|
elements = {
|
||||||
{
|
{
|
||||||
id = "console",
|
id = "console",
|
||||||
size = 1
|
size = 0.8
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
id = "repl",
|
||||||
|
size = 0.2
|
||||||
|
},
|
||||||
},
|
},
|
||||||
position = "right",
|
position = "right",
|
||||||
size = 50
|
size = 50
|
||||||
|
@ -41,57 +41,7 @@ keymap("<leader>eh", "<cmd>Telescope help_tags<cr>")
|
|||||||
keymap("<leader>es", "<cmd>Telescope lsp_document_symbols<cr>")
|
keymap("<leader>es", "<cmd>Telescope lsp_document_symbols<cr>")
|
||||||
keymap("<leader>eb", "<cmd>Telescope keymaps<cr>")
|
keymap("<leader>eb", "<cmd>Telescope keymaps<cr>")
|
||||||
|
|
||||||
------
|
require("theme")
|
||||||
-- color theme
|
|
||||||
-- plug: nvim-noirbuddy, colorbuddy.nvim
|
|
||||||
------
|
|
||||||
require("noirbuddy").setup({
|
|
||||||
colors = {
|
|
||||||
primary="#99AABB"
|
|
||||||
},
|
|
||||||
styles = {
|
|
||||||
italic = true,
|
|
||||||
bold = false,
|
|
||||||
underline = true,
|
|
||||||
undercurl = true,
|
|
||||||
},
|
|
||||||
preset = "slate",
|
|
||||||
})
|
|
||||||
-- force transparent bg
|
|
||||||
local Color, colors, Group, groups, styles = require("colorbuddy").setup {}
|
|
||||||
Group.new("Normal", colors.noir_4, colors.none, no)
|
|
||||||
Group.link("StatusLine", groups.normal)
|
|
||||||
Group.link("Gutter", groups.normal)
|
|
||||||
Group.new("LineNr", colors.noir_8, colors.none, no)
|
|
||||||
Group.link("SignColumn", groups.LineNr)
|
|
||||||
|
|
||||||
-- other overrides
|
|
||||||
Group.new("identifier", colors.noir_3, nil, no)
|
|
||||||
|
|
||||||
Group.new("function", colors.noir_2, nil)
|
|
||||||
Group.link("@function", groups["function"])
|
|
||||||
Group.link("@lsp.type.function", groups["function"])
|
|
||||||
|
|
||||||
Group.new("comment", colors.noir_6, nil, styles.italic)
|
|
||||||
Group.link("@comment", groups.comment)
|
|
||||||
|
|
||||||
Group.new("keyword.return", colors.noir_4, nil, styles.bold)
|
|
||||||
Group.link("@keyword.return", groups["keyword.return"])
|
|
||||||
Group.link("type.qualifier", groups["keyword.return"])
|
|
||||||
Group.link("@type.qualifier", groups["keyword.return"])
|
|
||||||
|
|
||||||
Group.new("NormalFloat", colors.noir_1, colors.noir_9, no)
|
|
||||||
|
|
||||||
-- swap undercurls and underlines
|
|
||||||
for _, v in ipairs({"Error", "Info", "Hint", "Warn"}) do
|
|
||||||
col_name = "diagnostic_" .. string.lower(v)
|
|
||||||
if v == "Warn" then
|
|
||||||
col_name = "diagnostic_warning"
|
|
||||||
end
|
|
||||||
|
|
||||||
Group.new("Diagnostic" .. v, colors[col_name], nil, styles.underline)
|
|
||||||
Group.new("DiagnosticUnderline" .. v, colors[col_name], nil, styles.undercurl)
|
|
||||||
end
|
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
70
src/.config/nvim/lua/theme.lua
Normal file
70
src/.config/nvim/lua/theme.lua
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
------
|
||||||
|
-- color theme
|
||||||
|
-- plug: nvim-noirbuddy, colorbuddy.nvim
|
||||||
|
------
|
||||||
|
|
||||||
|
require("noirbuddy").setup({
|
||||||
|
colors = {
|
||||||
|
primary="#99AABB"
|
||||||
|
},
|
||||||
|
styles = {
|
||||||
|
italic = true,
|
||||||
|
bold = false,
|
||||||
|
underline = true,
|
||||||
|
undercurl = true,
|
||||||
|
},
|
||||||
|
preset = "slate",
|
||||||
|
})
|
||||||
|
-- force transparent bg
|
||||||
|
local Color, colors, Group, groups, styles = require("colorbuddy").setup {}
|
||||||
|
Group.new("Normal", colors.noir_4, colors.none, no)
|
||||||
|
Group.new("StatusLine", colors.noir_4, colors.none, styles.bold)
|
||||||
|
-- not selected statusline
|
||||||
|
Group.new("StatusLineNC", colors.noir_7, colors.none)
|
||||||
|
Group.link("Gutter", groups.normal)
|
||||||
|
Group.new("LineNr", colors.noir_8, colors.none, no)
|
||||||
|
Group.link("SignColumn", groups.LineNr)
|
||||||
|
Group.new("VertSplit", colors.noir_9, colors.none, no)
|
||||||
|
|
||||||
|
-- other overrides
|
||||||
|
Group.new("identifier", colors.noir_3, nil, no)
|
||||||
|
|
||||||
|
Group.new("function", colors.noir_2, nil)
|
||||||
|
Group.link("@function", groups["function"])
|
||||||
|
Group.link("@lsp.type.function", groups["function"])
|
||||||
|
|
||||||
|
Group.new("comment", colors.noir_6, nil, styles.italic)
|
||||||
|
Group.link("@comment", groups.comment)
|
||||||
|
|
||||||
|
Group.new("keyword.return", colors.noir_4, nil, styles.bold)
|
||||||
|
Group.link("@keyword.return", groups["keyword.return"])
|
||||||
|
Group.link("type.qualifier", groups["keyword.return"])
|
||||||
|
Group.link("@type.qualifier", groups["keyword.return"])
|
||||||
|
|
||||||
|
Group.new("NormalFloat", colors.noir_1, colors.noir_9, no)
|
||||||
|
|
||||||
|
-- swap undercurls and underlines
|
||||||
|
for _, v in ipairs({"Error", "Info", "Hint", "Warn"}) do
|
||||||
|
col_name = "diagnostic_" .. string.lower(v)
|
||||||
|
if v == "Warn" then
|
||||||
|
col_name = "diagnostic_warning"
|
||||||
|
end
|
||||||
|
|
||||||
|
Group.new("Diagnostic" .. v, colors[col_name], nil, styles.underline)
|
||||||
|
Group.new("DiagnosticUnderline" .. v, colors[col_name], nil, styles.undercurl)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- DAP-ui colors
|
||||||
|
Group.new("DapUIModifiedValue", primary, nil, styles.bold)
|
||||||
|
Group.new("DapUIWatchesEmpty", colors.noir_8, nil, nil)
|
||||||
|
Group.new("DapUIWatchesError", colors.diff_delete, nil, nil)
|
||||||
|
Group.new("DapUISource", colors.primary, nil, nil)
|
||||||
|
Group.new("DapUILineNumber", colors.noir_5, nil, nil)
|
||||||
|
Group.new("DapUIScope", colors.noir_5, nil, nil)
|
||||||
|
Group.new("DapUIDecoration", colors.secondary, nil, nil)
|
||||||
|
Group.new("DapUIStoppedThread", colors.primary, nil, nil)
|
||||||
|
Group.new("DapUIBreakpointsCurrentLine", colors.primary, nil, nil)
|
||||||
|
Group.link("DapUIType", groups["@type.builtin"])
|
||||||
|
Group.link("DapUIVariable", groups["@variable"])
|
||||||
|
Group.link("DapUIValue", groups["@number"])
|
||||||
|
Group.link("DapUIFloatBorder", groups.FloatBorder)
|
Loading…
Reference in New Issue
Block a user