diff --git a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua index 42b22ac1..9856d3f7 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua @@ -238,3 +238,7 @@ wk.register({ }, { prefix = "" }) 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" }) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index d7295624..4cc0a0a7 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -102,7 +102,7 @@ return packer.startup({ run = ":TSUpdate", requires = { "p00f/nvim-ts-rainbow", - "nvim-treesitter/nvim-treesitter-context" + "nvim-treesitter/nvim-treesitter-context", }, config = function() require("plugins.configs.treesitter") @@ -704,16 +704,11 @@ return packer.startup({ -- Take a screenshot of code selected use({ - "segeljakt/vim-silicon", + "treatybreaker/fix-wl-copy-date-formatting", + requires = { "nvim-lua/plenary.nvim" }, config = function() - vim.g.silicon = { - theme = "Coldark-Dark", - } + require("silicon").setup({}) end, - cmd = { - "Silicon", - "SiliconHighlight", - }, }) -- Nice sidebar cursor goodies @@ -765,7 +760,7 @@ return packer.startup({ -- Better buffer deletion use({ - 'famiu/bufdelete.nvim' + "famiu/bufdelete.nvim", }) -- Leave at end!!!