nvim-config/lua/plugins/silicon.lua

19 lines
534 B
Lua
Raw Permalink Normal View History

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