feat: add carbon

This commit is contained in:
Tom Sorabella 2024-03-13 11:51:31 -04:00 committed by tsorabel
parent 020e6b2097
commit f988e271bb
2 changed files with 30 additions and 0 deletions

View File

@ -888,3 +888,6 @@ map({ 'n' }, '<leader>wb', '<cmd>vs<CR>', { desc = 'New [W]orkspace [B]uffer' })
-- Resize buffer (width) -- Resize buffer (width)
-- map({ 'n' }, '<C-m>', '<cmd>vertical res -5^M<CR>', { desc = 'Buffer - width' }) -- map({ 'n' }, '<C-m>', '<cmd>vertical res -5^M<CR>', { desc = 'Buffer - width' })
map({ 'n' }, '<C-m>', '<cmd>vertical res +5^M<CR>', { desc = 'Buffer + width' }) map({ 'n' }, '<C-m>', '<cmd>vertical res +5^M<CR>', { desc = 'Buffer + width' })
--CarbonNow Screenshot
map({ 'v' }, '<leader>s', ':CarbonNow<CR>', { desc = '[S]creenshoot with carbon now' })

View File

@ -62,4 +62,31 @@ return {
end, { desc = 'Open harpoon window' }) end, { desc = 'Open harpoon window' })
end, end,
}, },
{
'ellisonleao/carbon-now.nvim',
lazy = true,
cmd = 'CarbonNow',
-- @param opts cn.ConfigSchema
opts = {
base_url = 'https://carbon.now.sh/',
open_cmd = 'xdg-open',
options = {
bg = 'gray',
drop_shadow_blur = '68px',
drop_shadow = false,
drop_shadow_offset_y = '20px',
font_family = 'JetBrains Mono',
font_size = '16px',
line_height = '124%',
line_numbers = true,
theme = 'verminal',
titlebar = 'Made with carbon-now.nvim',
watermark = false,
width = '680',
window_theme = 'sharp',
padding_horizontal = '0px',
padding_vertical = '0px',
},
},
},
} }