Browse Source

feat: add carbon-now

master
Tovi Jaeschke-Rogers 1 week ago
parent
commit
8ea100f684
2 changed files with 42 additions and 7 deletions
  1. +17
    -7
      .config/nvim/lua/plugins/alpha.lua
  2. +25
    -0
      .config/nvim/lua/plugins/carbon-now.lua

+ 17
- 7
.config/nvim/lua/plugins/alpha.lua View File

@ -2,19 +2,29 @@ return {
'goolord/alpha-nvim',
dependencies = {
'echasnovski/mini.icons',
{
"MaximilianLloyd/ascii.nvim",
dependencies = {
"MunifTanjim/nui.nvim"
},
},
},
config = function ()
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
local neovim_lean = {
[[ ]],
[[ _/ _/ _/ _/ _/ ]],
[[ _/_/ _/ _/_/ _/_/ _/ _/ _/_/_/ _/_/ ]],
[[ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ ]],
[[ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ ]],
[[ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/ _/ ]],
[[ ]],
}
local neovim_decimal = {
[[ ]],
[[ 78 101 111 86 105 109 ]],
[[ ]],
}
-- Set the ASCII art
dashboard.section.header.val = require("ascii").art.text.neovim.lean
dashboard.section.header.val = neovim_lean
-- Remove other sections (buttons, footer, etc.) to show only the ASCII art
dashboard.section.buttons.val = {}


+ 25
- 0
.config/nvim/lua/plugins/carbon-now.lua View File

@ -0,0 +1,25 @@
return {
"ellisonleao/carbon-now.nvim",
lazy = true,
cmd = "CarbonNow",
---@param opts cn.ConfigSchema
opts = {
base_url = "https://carbon.now.sh/",
options = {
drop_shadow_blur = "68px",
drop_shadow = false,
drop_shadow_offset_y = "20px",
font_family = "Hack",
font_size = "18px",
line_height = "133%",
line_numbers = true,
theme = "monokai",
titlebar = "NeoVim",
watermark = false,
width = "680",
window_theme = "sharp",
padding_horizontal = "0px",
padding_vertical = "0px",
},
}
}

Loading…
Cancel
Save