feat: Make cmd

This commit is contained in:
davidon-top 2023-09-23 23:29:54 +02:00
parent 9d922f8de5
commit 07c399dbd8
7 changed files with 197 additions and 7 deletions

View file

@ -19,6 +19,6 @@ dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
vim.api.nvim_create_user_command("DapUIFloat", function ()
dapui.float_element()
vim.api.nvim_create_user_command("DapUIFloat", function (at)
dapui.float_element(at.args)
end, {})

View file

@ -4,6 +4,7 @@ local utils = require("heirline.utils")
local colors = {
bright_bg = utils.get_highlight("Folded").bg,
bright_fg = utils.get_highlight("Folded").fg,
dark_bg = "#0c0c0c",
red = utils.get_highlight("DiagnosticError").fg,
dark_red = utils.get_highlight("DiffDelete").bg,
green = utils.get_highlight("String").fg,
@ -113,7 +114,7 @@ local ViMode = {
},
}
ViMode = utils.surround({ "", "" }, "bright_bg", { ViMode})
ViMode = utils.surround({ "", "" }, "dark_bg", { ViMode})
local FileNameBlock = {
-- let's first set up some attributes needed by this component and it's children
@ -217,7 +218,7 @@ local FileLastModified = {
end
}
FileNameBlock = utils.surround({ "", "" }, "bright_bg", FileNameBlock)
FileNameBlock = utils.surround({ "", "" }, "dark_bg", FileNameBlock)
-- We're getting minimalists here!
local Ruler = {
@ -227,7 +228,7 @@ local Ruler = {
-- %P = percentage through file of displayed window
provider = "%7(%l/%3L%):%2c %P",
}
Ruler = utils.surround({ "", "" }, "bright_bg", Ruler)
Ruler = utils.surround({ "", "" }, "dark_bg", Ruler)
-- I take no credits for this! :lion:
local ScrollBar ={
@ -242,7 +243,7 @@ local ScrollBar ={
local i = math.floor((curr_line - 1) / lines * #self.sbar) + 1
return string.rep(self.sbar[i], 2)
end,
hl = { fg = "blue", bg = "bright_bg" },
hl = { fg = "blue", bg = "dark_bg" },
}
local LSPActive = {
@ -263,7 +264,7 @@ local LSPActive = {
hl = { fg = "green", bold = true },
}
LSPActive = utils.surround({ "", "" }, "bright_bg", LSPActive)
LSPActive = utils.surround({ "", "" }, "dark_bg", LSPActive)
-- Full nerd (with icon colors and clickable elements)!
-- works in multi window, but does not support flexible components (yet ...)