From 8ea100f684a6db774b09f729f0c85e61d283f5d7 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Tue, 17 Dec 2024 10:52:55 +1030 Subject: [PATCH] feat: add carbon-now --- .config/nvim/lua/plugins/alpha.lua | 24 +++++++++++++++++------- .config/nvim/lua/plugins/carbon-now.lua | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 .config/nvim/lua/plugins/carbon-now.lua diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua index cb43b79..9b81fbe 100644 --- a/.config/nvim/lua/plugins/alpha.lua +++ b/.config/nvim/lua/plugins/alpha.lua @@ -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 = {} diff --git a/.config/nvim/lua/plugins/carbon-now.lua b/.config/nvim/lua/plugins/carbon-now.lua new file mode 100644 index 0000000..8daf112 --- /dev/null +++ b/.config/nvim/lua/plugins/carbon-now.lua @@ -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", + }, + } +}