refactor(nvim): use rust-based plugin for silicon support

This commit is contained in:
Price Hiller 2023-02-22 15:37:53 -06:00
parent d713194920
commit 34db1103dc
2 changed files with 18 additions and 8 deletions

View File

@ -216,6 +216,4 @@ wk.register({
vim.keymap.set("n", "<leader>or", vim.cmd.OverseerRun, { silent = true, desc = "Overseer: Run" })
vim.keymap.set("n", "<leader>ot", vim.cmd.OverseerToggle, { silent = true, desc = "Overseer: Toggle" })
vim.keymap.set("v", "<leader>sc", function()
require("silicon").visualise_api({ to_clip = true })
end, { silent = true, desc = "Silicon: Copy" })
vim.keymap.set("v", "<leader>sc", "<cmd>Silicon<CR>", { silent = true, desc = "Silicon: Copy" })

View File

@ -751,11 +751,23 @@ lazy.setup({
-- Take a screenshot of code selected
{
"NarutoXY/silicon.lua",
event = "VeryLazy",
dependencies = { "nvim-lua/plenary.nvim" },
"krivahtoo/silicon.nvim",
build = "./install.sh build",
config = function()
require("silicon").setup({})
require("silicon").setup({
font = "Hack=20",
theme = "Monokai Extended",
background = "#87F",
pad_vert = 60,
pad_horiz = 40,
line_number = true,
watermark = {
text = "Test",
},
window_title = function()
return vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ":~:.")
end,
})
end,
},
@ -818,7 +830,7 @@ lazy.setup({
-- Improved Visuals for Documentation
{
"lukas-reineke/headlines.nvim",
after = { "nvim-treesitter"},
after = { "nvim-treesitter" },
event = "VeryLazy",
config = function()
require("headlines").setup()