mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2025-10-03
This commit is contained in:
@@ -4,57 +4,21 @@ return {
|
||||
main = "nvim-silicon",
|
||||
cmd = "Silicon",
|
||||
opts = {
|
||||
-- the font settings with size and fallback font
|
||||
font = "JetBrainsMono NF=34",
|
||||
-- the theme to use, depends on themes available to silicon
|
||||
-- theme = "Rosé Pine",
|
||||
theme = "Dracula",
|
||||
-- the background color outside the rendered os window
|
||||
background = "#1a1b26",
|
||||
-- a path to a background image
|
||||
background_image = nil,
|
||||
-- the paddings to either side
|
||||
pad_horiz = 100,
|
||||
pad_vert = 80,
|
||||
-- whether to have the os window rendered with rounded corners
|
||||
no_round_corner = false,
|
||||
-- whether to put the close, minimize, maximise traffic light controls on the border
|
||||
theme = "Rosé Pine",
|
||||
background = "#1f1d2e",
|
||||
no_window_controls = true,
|
||||
-- whether to turn off the line numbers
|
||||
no_line_number = false,
|
||||
-- with which number the line numbering shall start, the default is 1, but here a
|
||||
-- function is used to return the actual source code line number
|
||||
line_offset = function(args)
|
||||
return args.line1
|
||||
end,
|
||||
-- the distance between lines of code
|
||||
line_pad = 0,
|
||||
-- the rendering of tab characters as so many space characters
|
||||
tab_width = 4,
|
||||
-- with which language the syntax highlighting shall be done, should be a function
|
||||
-- that returns either a language name or an extension like ".js"
|
||||
language = function()
|
||||
return vim.bo.filetype
|
||||
end,
|
||||
-- if the shadow below the os window should have be blurred
|
||||
shadow_blur_radius = 16,
|
||||
-- the offset of the shadow in x and y directions
|
||||
shadow_offset_x = 8,
|
||||
shadow_offset_y = 8,
|
||||
-- the color of the shadow
|
||||
shadow_color = "#100808",
|
||||
-- whether to strip of superfluous leading whitespace
|
||||
gobble = true,
|
||||
-- a string or function that defines the path to the output image
|
||||
shadow_color = "#191724",
|
||||
output = function()
|
||||
return "~/Pictures/screenshots/code/" .. os.date("!%Y_%m_%d-%H_%M_%S") .. ".png"
|
||||
end,
|
||||
-- whether to put the image onto the clipboard, may produce an error if run on WSL2
|
||||
to_clipboard = true,
|
||||
-- the silicon command, put an absolute location here, if the command is not in your PATH
|
||||
command = "silicon",
|
||||
-- a string or function returning a string that defines the title showing in the image
|
||||
-- only works in silicon versions greater than v0.5.1
|
||||
window_title = function()
|
||||
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()), ":t")
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user