diff --git a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua index 4feedef5..e057ce00 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua @@ -216,6 +216,4 @@ wk.register({ vim.keymap.set("n", "or", vim.cmd.OverseerRun, { silent = true, desc = "Overseer: Run" }) vim.keymap.set("n", "ot", vim.cmd.OverseerToggle, { silent = true, desc = "Overseer: Toggle" }) -vim.keymap.set("v", "sc", function() - require("silicon").visualise_api({ to_clip = true }) -end, { silent = true, desc = "Silicon: Copy" }) +vim.keymap.set("v", "sc", "Silicon", { silent = true, desc = "Silicon: Copy" }) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 00969b18..fc09166c 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -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()