nvim-config/lua/plugins/silicon.lua

18 lines
534 B
Lua

return {
"michaelrommel/nvim-silicon",
lazy = true,
cmd = "Silicon",
keys = {
{ "<leader>sc", ":Silicon<CR>", desc = "Snapshot code block", mode = { "v" } },
},
config = function()
require("silicon").setup {
-- Configuration here, or leave empty to use defaults
font = "JuliaMono Nerd Font Mono=34;Noto Color Emoji=34",
theme = "Dracula",
window_title = function()
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()), ":t")
end,
}
end,
}