nvim-config/lua/plugins/silicon.lua

19 lines
534 B
Lua
Raw Normal View History

2024-04-11 08:04:03 +01:00
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 = "VictorMono 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
}